From 19aa57cc67434418106d57eaebd88f04f77224b0 Mon Sep 17 00:00:00 2001 From: oddlama Date: Sat, 11 Feb 2023 15:17:47 +0100 Subject: [PATCH] chore: variable name refactor --- nix/hosts.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nix/hosts.nix b/nix/hosts.nix index ec0822f..f3594ce 100644 --- a/nix/hosts.nix +++ b/nix/hosts.nix @@ -1,5 +1,5 @@ {nixpkgs, ...}: -nixpkgs.lib.concatMapAttrs (hostName: fileType: +nixpkgs.lib.concatMapAttrs (nodeName: fileType: if fileType == "directory" - then {${hostName} = import (../hosts + "/${hostName}/meta.nix");} + then {${nodeName} = import (../hosts + "/${nodeName}/meta.nix");} else {}) (builtins.readDir ../hosts)