mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
modules/nixos: Moved tf stuff into tf-glue module
This commit is contained in:
parent
0dc50259eb
commit
016a0d305c
2 changed files with 14 additions and 15 deletions
|
|
@ -70,20 +70,5 @@ in {
|
||||||
(map (interface: nameValuePair interface (interfaceDef visibility))
|
(map (interface: nameValuePair interface (interfaceDef visibility))
|
||||||
cfg.${visibility}.interfaces);
|
cfg.${visibility}.interfaces);
|
||||||
in mkMerge (map (visibility: interfaces visibility) [ "public" "private" ]);
|
in mkMerge (map (visibility: interfaces visibility) [ "public" "private" ]);
|
||||||
|
|
||||||
deploy.tf.dns.records."kittywitch_net_${config.networking.hostName}" =
|
|
||||||
mkIf config.hexchen.network.enable {
|
|
||||||
tld = "kittywit.ch.";
|
|
||||||
domain = "${config.networking.hostName}.net";
|
|
||||||
aaaa.address = config.hexchen.network.address;
|
|
||||||
};
|
|
||||||
|
|
||||||
security.acme.certs."${config.networking.hostName}.net.kittywit.ch" =
|
|
||||||
mkIf (config.services.nginx.enable && config.hexchen.network.enable) {
|
|
||||||
domain = "${config.networking.hostName}.net.kittywit.ch";
|
|
||||||
dnsProvider = "rfc2136";
|
|
||||||
credentialsFile = config.secrets.files.dns_creds.path;
|
|
||||||
group = "nginx";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,20 @@ in {
|
||||||
attrs = [ "out" "attrs" ];
|
attrs = [ "out" "attrs" ];
|
||||||
out.set = removeAttrs cfg cfg.attrs;
|
out.set = removeAttrs cfg cfg.attrs;
|
||||||
};
|
};
|
||||||
|
deploy.tf.dns.records."kittywitch_net_${config.networking.hostName}" =
|
||||||
|
mkIf (config.hexchen.network.enable) {
|
||||||
|
tld = "kittywit.ch.";
|
||||||
|
domain = "${config.networking.hostName}.net";
|
||||||
|
aaaa.address = config.hexchen.network.address;
|
||||||
|
};
|
||||||
|
|
||||||
|
security.acme.certs."${config.networking.hostName}.net.kittywit.ch" =
|
||||||
|
mkIf (config.services.nginx.enable && config.hexchen.network.enable) {
|
||||||
|
domain = "${config.networking.hostName}.net.kittywit.ch";
|
||||||
|
dnsProvider = "rfc2136";
|
||||||
|
credentialsFile = config.secrets.files.dns_creds.path;
|
||||||
|
group = "nginx";
|
||||||
|
};
|
||||||
_module.args.tf = target.${config.deploy.target};
|
_module.args.tf = target.${config.deploy.target};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue