diff options
| author | seth <[email protected]> | 2023-04-17 12:00:55 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-04-17 12:01:21 -0400 |
| commit | 92ca826539092f33c8e19a19c7a9ea0def2aece0 (patch) | |
| tree | c6ff98c3f645f189b559bc1a69904fec217a946c /lib/default.nix | |
| parent | 98921a299be9f22bde9204e1fd05d0ea0fb0c6ed (diff) | |
move most configurations to modules
Diffstat (limited to 'lib/default.nix')
| -rw-r--r-- | lib/default.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/default.nix b/lib/default.nix new file mode 100644 index 0000000..b909fe5 --- /dev/null +++ b/lib/default.nix @@ -0,0 +1,14 @@ +{ + inputs, + lib, +}: let + inherit (builtins) readDir; + inherit (lib) filterAttrs mapAttrs; + + mapFilterDirs = dir: filter: map: let + dirs = filterAttrs filter (readDir dir); + in + mapAttrs map dirs; +in + (import ./host.nix {inherit inputs mapFilterDirs;}) + // (import ./user.nix {inherit inputs mapFilterDirs;}) |
