hexchen yggdrasil module changes

This commit is contained in:
kat witch 2021-07-25 23:26:46 +01:00
parent ef4d5ca036
commit e8fcabc143
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
7 changed files with 16 additions and 16 deletions

View file

@ -7,7 +7,7 @@
./deploy-tf.nix
(sources.tf-nix + "/modules/nixos/secrets.nix")
(sources.tf-nix + "/modules/nixos/secrets-users.nix")
(sources.hexchen + "/modules/hexnet")
(sources.hexchen + "/modules/network/yggdrasil")
];
# stubs for hexchens modules, until more generalized

View file

@ -67,10 +67,10 @@ in
};
dns.records."kittywitch_net_${config.networking.hostName}" =
mkIf (config.hexchen.network.enable) {
mkIf (config.network.yggdrasil.enable) {
tld = "kittywit.ch.";
domain = "${config.networking.hostName}.net";
aaaa.address = config.hexchen.network.address;
aaaa.address = config.network.yggdrasil.address;
};
} ++ mapAttrsToList
@ -79,7 +79,7 @@ in
config.home-manager.users);
security.acme.certs."${config.networking.hostName}.net.kittywit.ch" =
mkIf (config.services.nginx.enable && config.hexchen.network.enable) {
mkIf (config.services.nginx.enable && config.network.yggdrasil.enable) {
domain = "${config.networking.hostName}.net.kittywit.ch";
dnsProvider = "rfc2136";
credentialsFile = config.secrets.files.dns_creds.path;