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

This commit is contained in:
hektor committed 2026-06-13 01:23:31 +02:00
1 parent c7567330b8
commit 1995c04b1d
21 files changed
+78 -84

No files matched your search

+2 -2
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
);
}