flake.nix: fix usage of common nixos module list

This commit is contained in:
Oystein Kristoffer Tveit 2024-03-24 02:20:44 +01:00
parent fe4dd21acb
commit c240dafcfe

View File

@ -53,7 +53,7 @@
modules = [
./hosts/${name}/configuration.nix
sops-nix.nixosModules.sops
];
] ++ config.modules or [];
pkgs = import nixpkgs {
inherit system;
@ -62,7 +62,7 @@
];
};
}
config
(removeAttrs config [ "modules" ])
);
stableNixosConfig = nixosConfig nixpkgs;
@ -70,9 +70,6 @@
in {
bicep = stableNixosConfig "bicep" {
modules = [
./hosts/bicep/configuration.nix
sops-nix.nixosModules.sops
inputs.matrix-next.nixosModules.default
inputs.pvv-calendar-bot.nixosModules.default
];
@ -80,9 +77,6 @@
bekkalokk = stableNixosConfig "bekkalokk" { };
bob = stableNixosConfig "bob" {
modules = [
./hosts/bob/configuration.nix
sops-nix.nixosModules.sops
disko.nixosModules.disko
{ disko.devices.disk.disk1.device = "/dev/vda"; }
];
@ -93,28 +87,17 @@
brzeczyszczykiewicz = stableNixosConfig "brzeczyszczykiewicz" {
modules = [
./hosts/brzeczyszczykiewicz/configuration.nix
sops-nix.nixosModules.sops
inputs.grzegorz.nixosModules.grzegorz-kiosk
inputs.grzegorz-clients.nixosModules.grzegorz-webui
];
};
georg = stableNixosConfig "georg" {
modules = [
./hosts/georg/configuration.nix
sops-nix.nixosModules.sops
inputs.grzegorz.nixosModules.grzegorz-kiosk
inputs.grzegorz-clients.nixosModules.grzegorz-webui
];
};
buskerud = stableNixosConfig "buskerud" {
modules = [
./hosts/buskerud/configuration.nix
sops-nix.nixosModules.sops
];
};
buskerud = stableNixosConfig "buskerud" { };
};
devShells = forAllSystems (system: {