mirror of
https://github.com/RGBCube/ncc
synced 2025-07-29 11:07:44 +00:00
Simplify hosts generation
This commit is contained in:
parent
374dd56aae
commit
1125182979
1 changed files with 1 additions and 4 deletions
|
@ -183,10 +183,7 @@
|
|||
++ (builtins.attrValues (builtins.mapAttrs (name: _: ./hosts/${host}/${name}) (builtins.readDir ./hosts/${host})));
|
||||
};
|
||||
|
||||
hosts = (builtins.attrNames
|
||||
(nixpkgs.lib.filterAttrs
|
||||
(_: value: value == "directory")
|
||||
(builtins.readDir ./hosts)));
|
||||
hosts = (builtins.attrNames (builtins.readDir ./hosts));
|
||||
in {
|
||||
nixosConfigurations = nixpkgs.lib.genAttrs hosts importConfiguration;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue