diff options
| Commit | e69d90192823929a437e035605d1fd64b54c5877 (patch) | |
|---|---|---|
| Author | 2024-09-08 10:36:35 +0300 | |
| Committer | 2024-09-08 10:36:35 +0300 | |
| Files | 275b8f530e3169f727db07362ef04ebb0058d8ca /autoconfig.nix | |
| nix-e69d90192823929a437e035605d1fd64b54c5877.tar nix-e69d90192823929a437e035605d1fd64b54c5877.tar.gz nix-e69d90192823929a437e035605d1fd64b54c5877.zip | ||
| Parent | 2869a3893a8aa5d9ef6846ec09a40180fe5cbcf9 (diff) | |
feat(autoconfig)!: Rework modules-dir to use a new sysidentity argument - kind
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 |
