Skip to content

Commit

Permalink
add hosts module arg to easily access other host's config
Browse files Browse the repository at this point in the history
  • Loading branch information
Pacman99 committed Mar 16, 2021
1 parent 43ddd47 commit ca16117
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hosts/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ let

_module.args = {
inherit self;
hosts = builtins.mapAttrs (_: host: host.config)
(removeAttrs hosts [ hostName ]);
};
};
in
Expand Down

0 comments on commit ca16117

Please sign in to comment.