refactor: derive host name solely from host directory name

This commit is contained in:
2026-04-30 16:40:45 +02:00
parent ce02cc5538
commit 95ffe7b908
19 changed files with 40 additions and 53 deletions

View File

@@ -1,12 +1,8 @@
{ lib }:
let
hosts = import ./hosts.nix;
fs = import ./fs.nix { inherit lib; };
hosts = import ./hosts.nix { inherit lib; };
secrets = import ./secrets.nix { inherit lib; };
in
{
dirNames =
path: builtins.attrNames (lib.filterAttrs (_: type: type == "directory") (builtins.readDir path));
}
// hosts
// secrets
fs // hosts // secrets