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

6
utils/fs.nix Normal file
View File

@@ -0,0 +1,6 @@
{ lib }:
{
dirNames =
path: builtins.attrNames (lib.filterAttrs (_: t: t == "directory") (builtins.readDir path));
}