forked from pub-solar/os
set add self and hosts module arguments
This commit is contained in:
parent
a6344faa9a
commit
b6c00e74e7
|
@ -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;
|
system.configurationRevision = lib.mkIf (self ? rev) self.rev;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue