mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
evalModules because funny
This commit is contained in:
parent
ce56f1fcc3
commit
e4ca5580a3
1 changed files with 6 additions and 2 deletions
|
|
@ -49,7 +49,10 @@ in {
|
|||
mkHosts = system: names:
|
||||
lib.genAttrs names (
|
||||
name:
|
||||
lib.nixosSystem {
|
||||
# Whats lib.nixosSystem? never heard of her
|
||||
lib.evalModules {
|
||||
specialArgs.modulesPath = "${unstable}/nixos/modules";
|
||||
|
||||
modules =
|
||||
builtins.attrValues self.nixosModules
|
||||
++ importAll "${self}/hosts/${name}"
|
||||
|
|
@ -58,7 +61,8 @@ in {
|
|||
networking.hostName = name;
|
||||
nixpkgs.hostPlatform = system;
|
||||
}
|
||||
];
|
||||
]
|
||||
++ (import "${unstable}/nixos/modules/module-list.nix");
|
||||
}
|
||||
);
|
||||
mkDisko = names:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue