move unspecific options to boilerplate with let-in in flake.nix
This commit is contained in:
parent
20e6d1c729
commit
17c2fa1fe6
1 changed files with 18 additions and 14 deletions
32
flake.nix
32
flake.nix
|
|
@ -31,25 +31,29 @@
|
||||||
nixcord,
|
nixcord,
|
||||||
...
|
...
|
||||||
}@inputs:
|
}@inputs:
|
||||||
|
let
|
||||||
|
boilerplate = [
|
||||||
|
./modules/themeing
|
||||||
|
home-manager.nixosModules.home-manager
|
||||||
|
{
|
||||||
|
home-manager.useGlobalPkgs = true;
|
||||||
|
home-manager.useUserPackages = true;
|
||||||
|
home-manager.extraSpecialArgs = { inherit inputs; };
|
||||||
|
home-manager.sharedModules = [
|
||||||
|
./modules/themeing
|
||||||
|
./modules/programs
|
||||||
|
];
|
||||||
|
home-manager.users.lucy = ./modules/hosts/base/home.nix;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations.nerv = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.nerv = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = { inherit inputs; };
|
specialArgs = { inherit inputs; };
|
||||||
modules = [
|
modules = [
|
||||||
./modules/themeing
|
|
||||||
|
|
||||||
./modules/hosts/nerv/configuration.nix
|
./modules/hosts/nerv/configuration.nix
|
||||||
home-manager.nixosModules.home-manager
|
]
|
||||||
{
|
++ boilerplate;
|
||||||
home-manager.useGlobalPkgs = true;
|
|
||||||
home-manager.useUserPackages = true;
|
|
||||||
home-manager.extraSpecialArgs = { inherit inputs; };
|
|
||||||
home-manager.sharedModules = [
|
|
||||||
./modules/themeing
|
|
||||||
./modules/programs
|
|
||||||
];
|
|
||||||
home-manager.users.lucy = ./modules/hosts/base/home.nix;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue