summaryrefslogtreecommitdiff
path: root/lib/host.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-04-17 12:11:04 -0400
committerseth <[email protected]>2023-04-17 12:11:04 -0400
commit354cc21b53b68c2944bbba6922129f6d21858ab2 (patch)
tree14346d75b4b7520d97395534afccc02dab5fafd4 /lib/host.nix
parent92ca826539092f33c8e19a19c7a9ea0def2aece0 (diff)
improve lib
Diffstat (limited to 'lib/host.nix')
-rw-r--r--lib/host.nix8
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}