evalModules because funny

This commit is contained in:
Gerg-L 2023-08-30 19:57:11 -04:00
parent ce56f1fcc3
commit e4ca5580a3
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI

View file

@ -49,7 +49,10 @@ in {
mkHosts = system: names: mkHosts = system: names:
lib.genAttrs names ( lib.genAttrs names (
name: name:
lib.nixosSystem { # Whats lib.nixosSystem? never heard of her
lib.evalModules {
specialArgs.modulesPath = "${unstable}/nixos/modules";
modules = modules =
builtins.attrValues self.nixosModules builtins.attrValues self.nixosModules
++ importAll "${self}/hosts/${name}" ++ importAll "${self}/hosts/${name}"
@ -58,7 +61,8 @@ in {
networking.hostName = name; networking.hostName = name;
nixpkgs.hostPlatform = system; nixpkgs.hostPlatform = system;
} }
]; ]
++ (import "${unstable}/nixos/modules/module-list.nix");
} }
); );
mkDisko = names: mkDisko = names: