add hosts module arg to easily access other host's config
This commit is contained in:
parent
1ac3d83fc1
commit
6210daff13
1 changed files with 2 additions and 0 deletions
|
@ -75,6 +75,8 @@ let
|
||||||
|
|
||||||
_module.args = {
|
_module.args = {
|
||||||
inherit self;
|
inherit self;
|
||||||
|
hosts = builtins.mapAttrs (_: host: host.config)
|
||||||
|
(removeAttrs hosts [ hostName ]);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
Loading…
Reference in a new issue