nixos-config/flake.nix
Zhongheng Liu 5515d4a9cd
feat: introduced new home-manager features
Changed wallpaper to better fit the style of the WM
- affected common variables
- affected hyprland configuration
- affected stylix configuration
- included additional flake inputs
Added Spicetify packages (not working)
Added obs-studio home-manager program option
Added vimkey navigation keybinds for Hyprland
2024-08-25 18:40:18 +08:00

60 lines
1.7 KiB
Nix

{
description = "Your new nix config";
inputs = {
# Nixpkgs
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixvim = {
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
};
# Home manager
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
stylix.url = "github:danth/stylix";
spicetify-nix = {
url = "github:Gerg-L/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
self,
nixpkgs,
home-manager,
stylix,
spicetify-nix,
...
} @ inputs: let
inherit (self) outputs;
myHostName = "nixos-msi";
stevenUserName = "stvnliu";
in {
# NixOS configuration entrypoint
# Available through 'nixos-rebuild --flake .#your-hostname'
nixosConfigurations = {
"${myHostName}" = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs;};
modules = [
./nixos/configuration.nix
];
};
};
# Standalone home-manager configuration entrypoint
# Available through 'home-manager --flake .#your-username@your-hostname'
homeConfigurations = {
"${stevenUserName}@${myHostName}" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
extraSpecialArgs = {inherit inputs outputs;};
modules = [
./home-manager/${stevenUserName}/home.nix
inputs.nixvim.homeManagerModules.nixvim
inputs.stylix.homeManagerModules.stylix
inputs.spicetify-nix.homeManagerModules.default
];
};
};
};
}