add hosts module arg to easily access other host's config

This commit is contained in:
Pacman99 2021-03-16 14:22:38 -07:00
parent 1ac3d83fc1
commit 6210daff13

View file

@ -75,6 +75,8 @@ let
_module.args = {
inherit self;
hosts = builtins.mapAttrs (_: host: host.config)
(removeAttrs hosts [ hostName ]);
};
};
in