Skip to content

Commit

Permalink
add hosts specialArg to allow for modules to reference other host's c…
Browse files Browse the repository at this point in the history
…onfiguration
  • Loading branch information
Pacman99 committed Mar 14, 2021
1 parent d7f15a6 commit 2add960
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions hosts/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ let
modOverrides
] ++ extern.modules;

specialArgs = extern.specialArgs // { inherit suites; };

mkHostConfig = hostName:
let
local = {
Expand All @@ -73,6 +71,12 @@ let

networking = { inherit hostName; };
};

specialArgs = extern.specialArgs // {
inherit suites;
hosts = builtins.mapAttrs (_: host: host.config)
(removeAttrs hosts [ hostName ]);
};
in
dev.os.devosSystem {
inherit system specialArgs;
Expand Down

0 comments on commit 2add960

Please sign in to comment.