diff options
| author | seth <[email protected]> | 2023-04-17 18:58:34 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-04-17 18:58:34 -0400 |
| commit | f50323e2f275da3456bc48adcb551811294298ac (patch) | |
| tree | 3af8398bda61a8bff49ce95e9a110c90ef2eaab8 /lib/host.nix | |
| parent | b6c93c98510a8e60121572d2a7612e6fe3924f32 (diff) | |
further improve lib
Diffstat (limited to 'lib/host.nix')
| -rw-r--r-- | lib/host.nix | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/lib/host.nix b/lib/host.nix index 767124c..5b092b4 100644 --- a/lib/host.nix +++ b/lib/host.nix @@ -1,4 +1,4 @@ -{mapFilterDirs}: rec { +{lib}: rec { mkHost = { name, modules, @@ -34,14 +34,11 @@ mapHosts = inputs: let hosts = import ../hosts inputs; + inherit (lib.my) mapFilterDirs; in mapFilterDirs ../hosts (n: v: v == "directory" && n != "turret") (name: _: - mkHost { - inherit name inputs; - inherit (hosts.${name}) modules system stateVersion pkgs; - specialArgs = - if builtins.hasAttr "specialArgs" hosts.${name} - then hosts.${name}.specialArgs - else {}; - }); + mkHost ({ + inherit name inputs; + } + // hosts.${name})); } |
