refactor: modularize utils

This commit is contained in:
2026-04-14 19:15:35 +02:00
parent 949917a809
commit fce3aa45ec
3 changed files with 45 additions and 35 deletions

8
utils/hosts.nix Normal file
View File

@@ -0,0 +1,8 @@
{
hostMeta =
hostDir:
if builtins.pathExists (hostDir + "/meta.nix") then
import (hostDir + "/meta.nix")
else
throw "meta.nix required in ${hostDir}";
}