From 1125182979b0c9d1aa551f1835bfdbb00e811fa8 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Sat, 20 Jan 2024 13:37:28 +0300 Subject: [PATCH] Simplify hosts generation --- flake.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 0c66142..6b9aea3 100644 --- a/flake.nix +++ b/flake.nix @@ -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; };