nixos modules for convenient deployment of cloud resources

fix: don't generate app for host if no providers were used

ptr.pet 52576c71 65414a3f

verified
Changed files
+4 -1
+4 -1
makeApps.nix
···
l.mergeAttrsList (
l.mapAttrsToList
(
-
hostname: host: {
+
hostname: host:
+
if l.hasAttr "providers" host.config
+
then {
"deploy-${hostname}-resources" = {
type = "app";
program = toString (mkApp host);
};
}
+
else {}
)
self.nixosConfigurations
)