diff options
1 files changed, 10 insertions, 2 deletions
| -rw-r--r-- | autoconfig.nix | 12 |
diff --git a/autoconfig.nix b/autoconfig.nix index f1f47c4..aae1315 100644 --- a/autoconfig.nix +++ b/autoconfig.nix @@ -7,10 +7,18 @@ in { lib.mapAttrs (dir: _: let + # sysidentity.nix is a file inside machines/name/, which is always in the form + # groups: # attrset which will be used in include and exclude + # { + # name = ""; # hostname of machine + # arch = ""; # architecture + # kind = ""; # name of subfolder inside ./modules + # include = []; # names of files inside ./modules/kind/ which to be included, by default only default.nix is + # exclude = []; # names of files inside ./modules/kind/ which to be excluded (from include) + # } sysidentity = (import ./machines/${dir}/sysidentity.nix) (import ./module-groups.nix); - # TODO: rework - modules-dir = ./modules + ("/" + (if sysidentity ? "modules-subpath" then sysidentity.modules-subpath else "personal")); + modules-dir = ./modules + ("/" + sysidentity."kind"); package-modules = let |
