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 89c6fc6 commit 2b718a8
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 @@ -76,6 +76,8 @@ let

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

0 comments on commit 2b718a8

Please sign in to comment.