Move home manager setup to flake.nix
This commit is contained in:
parent
5054b13564
commit
71a4f49fb7
16
flake.nix
16
flake.nix
@ -30,9 +30,25 @@
|
||||
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs;};
|
||||
modules = [
|
||||
# Get the system config
|
||||
./hosts/nixos/configuration.nix
|
||||
# Enable stylix
|
||||
inputs.stylix.nixosModules.stylix
|
||||
# Load my modules
|
||||
./modules/nixos
|
||||
# Setup home manager for my user
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.extraSpecialArgs = {inherit inputs;};
|
||||
home-manager.backupFileExtension = "backup";
|
||||
home-manager.users.crony = {
|
||||
imports = [
|
||||
./hosts/nixos/home.nix
|
||||
./modules/home-manager
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
@ -73,15 +73,6 @@
|
||||
extraGroups = ["networkmanager" "wheel" "video" "input" "audio" "libvirtd"];
|
||||
};
|
||||
|
||||
# Setup home manager
|
||||
home-manager = {
|
||||
extraSpecialArgs = {inherit inputs;};
|
||||
backupFileExtension = "backup";
|
||||
users = {
|
||||
crony = import ./home.nix;
|
||||
};
|
||||
};
|
||||
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
|
1
modules/home-manager/default.nix
Normal file
1
modules/home-manager/default.nix
Normal file
@ -0,0 +1 @@
|
||||
{...}: {}
|
Loading…
x
Reference in New Issue
Block a user