From c8014ded7db1a54e8742db61b189253c61d63a7a Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Thu, 28 Oct 2021 16:24:50 -0400 Subject: [PATCH] bugfix for lib.getHosts --- lib/hosts.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/hosts.nix b/lib/hosts.nix index 2db90eb..6445fd2 100644 --- a/lib/hosts.nix +++ b/lib/hosts.nix @@ -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; }) ]; })