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,13 +31,9 @@
nixcord,
...
}@inputs:
{
nixosConfigurations.nerv = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [
let
boilerplate = [
./modules/themeing
./modules/hosts/nerv/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
@ -50,6 +46,14 @@
home-manager.users.lucy = ./modules/hosts/base/home.nix;
}
];
in
{
nixosConfigurations.nerv = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [
./modules/hosts/nerv/configuration.nix
]
++ boilerplate;
};
};