move unspecific options to boilerplate with let-in in flake.nix

This commit is contained in:
lucy 2026-09-01 12:34:34 +02:00
commit 17c2fa1fe6

View file

@ -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;
}
];
}; };
}; };