mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +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
|
||||
# { x86_64-linux = [ "host1" "host2" ]; }
|
||||
sysToHosts = mapAttrs
|
||||
(system: _: attrNames (readDir "${path}/${system}"))
|
||||
(system: _: attrNames (readDir (path + "/${system}")))
|
||||
(readDir path);
|
||||
|
||||
# invert the attrset, from {sys=[name]} to {name=sys}
|
||||
|
@ -24,7 +24,7 @@ let
|
|||
inherit system;
|
||||
modules = [
|
||||
(nixosModule)
|
||||
("${path}/${system}/${hostName}")
|
||||
(path + "/${system}/${hostName}")
|
||||
(_: { networking.hostName = hostName; })
|
||||
];
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue