1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 11:07:44 +00:00

Simplify hosts generation

This commit is contained in:
RGBCube 2024-01-20 13:37:28 +03:00
parent 374dd56aae
commit 1125182979
No known key found for this signature in database

View file

@ -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;
};