1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

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.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)