diff options
| author | seth <[email protected]> | 2023-04-17 12:11:04 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-04-17 12:11:04 -0400 |
| commit | 354cc21b53b68c2944bbba6922129f6d21858ab2 (patch) | |
| tree | 14346d75b4b7520d97395534afccc02dab5fafd4 /lib/host.nix | |
| parent | 92ca826539092f33c8e19a19c7a9ea0def2aece0 (diff) | |
improve lib
Diffstat (limited to 'lib/host.nix')
| -rw-r--r-- | lib/host.nix | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/host.nix b/lib/host.nix index b5e00b3..767124c 100644 --- a/lib/host.nix +++ b/lib/host.nix @@ -1,7 +1,4 @@ -{ - inputs, - mapFilterDirs, -}: rec { +{mapFilterDirs}: rec { mkHost = { name, modules, @@ -9,6 +6,7 @@ system ? "x86_64-linux", stateVersion ? "22.11", pkgs, + inputs, }: with pkgs.lib; nixosSystem { @@ -39,7 +37,7 @@ in mapFilterDirs ../hosts (n: v: v == "directory" && n != "turret") (name: _: mkHost { - inherit name; + inherit name inputs; inherit (hosts.${name}) modules system stateVersion pkgs; specialArgs = if builtins.hasAttr "specialArgs" hosts.${name} |
