mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
bugfix for lib.getHosts
This commit is contained in:
parent
acf460ec7a
commit
c8014ded7d
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ let
|
||||||
# grab a list of systems, with associated hostnames
|
# grab a list of systems, with associated hostnames
|
||||||
# { x86_64-linux = [ "host1" "host2" ]; }
|
# { x86_64-linux = [ "host1" "host2" ]; }
|
||||||
sysToHosts = mapAttrs
|
sysToHosts = mapAttrs
|
||||||
(system: _: attrNames (readDir "${path}/${system}"))
|
(system: _: attrNames (readDir (path + "/${system}")))
|
||||||
(readDir path);
|
(readDir path);
|
||||||
|
|
||||||
# invert the attrset, from {sys=[name]} to {name=sys}
|
# invert the attrset, from {sys=[name]} to {name=sys}
|
||||||
|
@ -24,7 +24,7 @@ let
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
(nixosModule)
|
(nixosModule)
|
||||||
("${path}/${system}/${hostName}")
|
(path + "/${system}/${hostName}")
|
||||||
(_: { networking.hostName = hostName; })
|
(_: { networking.hostName = hostName; })
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue