chore: variable name refactor

This commit is contained in:
oddlama 2023-02-11 15:17:47 +01:00
parent c026014d0b
commit 19aa57cc67
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A

View file

@ -1,5 +1,5 @@
{nixpkgs, ...}: {nixpkgs, ...}:
nixpkgs.lib.concatMapAttrs (hostName: fileType: nixpkgs.lib.concatMapAttrs (nodeName: fileType:
if fileType == "directory" if fileType == "directory"
then {${hostName} = import (../hosts + "/${hostName}/meta.nix");} then {${nodeName} = import (../hosts + "/${nodeName}/meta.nix");}
else {}) (builtins.readDir ../hosts) else {}) (builtins.readDir ../hosts)