feat: restructure dev-components/dev-registry with direnv

This commit is contained in:
2026-04-01 22:50:00 +02:00
parent 5a37795151
commit 71cd268f79
7 changed files with 212 additions and 98 deletions

View File

@@ -16,7 +16,13 @@ let
hasUser = user != null;
# path helpers
featurePath = f: ../features/${f}.nix;
featurePath =
f:
let
file = ../features/${f}.nix;
dir = ../features/${f};
in
if builtins.pathExists file then file else dir;
userFeaturePath = u: ../features/user-${u}.nix;
hostConfig = ../hosts/${name}/configuration.nix;
hostHWConfig = ../hosts/${name}/hardware-configuration.nix;