refactor: cleanup (deadnix, nixfmt, statix)

This commit is contained in:
2026-03-11 23:23:38 +01:00
parent 7c92cc5c6a
commit 12481d7468
14 changed files with 20 additions and 22 deletions

View File

@@ -4,8 +4,10 @@
dirNames =
path: builtins.attrNames (lib.filterAttrs (_: type: type == "directory") (builtins.readDir path));
hostMeta = hostDir:
if builtins.pathExists (hostDir + "/meta.nix")
then import (hostDir + "/meta.nix")
else throw "meta.nix required in ${hostDir}";
hostMeta =
hostDir:
if builtins.pathExists (hostDir + "/meta.nix") then
import (hostDir + "/meta.nix")
else
throw "meta.nix required in ${hostDir}";
}