This commit is contained in:
Spectre 2025-03-16 00:26:15 +01:00
parent 7c51db8359
commit 597bd5cc75
2 changed files with 7 additions and 0 deletions

View file

@ -86,6 +86,11 @@
nixosConfigurations = lib.pipe ./hosts [
builtins.readDir
(lib.filterAttrs (_: type: type == "directory"))
(lib.filterAttrs (
name: _:
builtins.pathExists ./hosts/${name}/default.nix
&& builtins.pathExists ./hosts/${name}/hardware-configuration.nix
))
(builtins.mapAttrs (name: _: makeHost name (systemFromHardwareConf name)))
];
};

View file

@ -0,0 +1,2 @@
{...}: {
}