set add self and hosts module arguments

This commit is contained in:
Pacman99 2021-04-26 19:33:31 -07:00
parent a6344faa9a
commit b6c00e74e7

View file

@ -41,6 +41,12 @@
}
'';
_module.args = {
inherit self;
hosts = builtins.mapAttrs (_: host: host.config)
(removeAttrs self.nixosConfigurations [ config.networking.hostName ]);
};
system.configurationRevision = lib.mkIf (self ? rev) self.rev;
};