refactor: merge 'host.nix' into 'meta.nix'

This commit is contained in:
2026-06-12 20:30:08 +02:00
parent c7567330b8
commit 1995c04b1d
21 changed files with 78 additions and 84 deletions

View File

@@ -9,11 +9,11 @@ in
if builtins.pathExists (hostDir + "/meta.nix") then
import (hostDir + "/meta.nix")
else
throw "meta.nix required in ${hostDir}";
throw "meta.nix required in ${toString hostDir}";
adminHosts =
hostsPath:
builtins.filter (host: ((import (hostsPath + "/${host}/host.nix")).host.admin or false)) (
builtins.filter (host: ((import (hostsPath + "/${host}/meta.nix")).host.admin or false)) (
fs.dirNames hostsPath
);
}