rinnosuke: rework to move DNS records into separate target

This commit is contained in:
kat witch 2021-08-31 01:57:40 +01:00
parent f592f34430
commit dbf80fbe36
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
5 changed files with 25 additions and 6 deletions

View file

@ -44,6 +44,7 @@ in
}; };
network = { network = {
dns.enable = false;
addresses = { addresses = {
public = { public = {
enable = true; enable = true;

View file

@ -1,11 +1,11 @@
{ config, lib, ... }: { config, lib, ... }: with lib;
{ {
network = { network = {
enable = true; enable = true;
nftables.enable = true; nftables.enable = true;
dns = { dns = {
enable = true; enable = mkDefault true;
email = "acme@kittywit.ch"; email = "acme@kittywit.ch";
tld = "kittywit.ch."; tld = "kittywit.ch.";
}; };

View file

@ -0,0 +1,18 @@
{ config, ... }:
let rinnosuke = config.network.nodes.rinnosuke; in {
deploy.targets.rinnosuke-domains.tf = {
dns.records = {
node_public_rinnosuke_v4 = {
tld = rinnosuke.network.dns.tld;
domain = rinnosuke.networking.hostName;
a.address = rinnosuke.network.addresses.public.nixos.ipv4.address;
};
node_public_rinnosuke_v6 = {
tld = rinnosuke.network.dns.tld;
domain = rinnosuke.networking.hostName;
aaaa.address = rinnosuke.network.addresses.public.nixos.ipv6.address;
};
};
};
}

View file

@ -89,10 +89,10 @@
"homepage": null, "homepage": null,
"owner": "kittywitch", "owner": "kittywitch",
"repo": "nixexprs", "repo": "nixexprs",
"rev": "1d3794d833bd3c76f5244410b44f947b8b0460b1", "rev": "72c9b8619aabcf1e4e44511494f52b465e1687b8",
"sha256": "0rf44z4k9xqvdqbkppdgw467r0znabn4ad0qv6q7b1149r7y9mfs", "sha256": "0bk3qc12f0xlz4lwijwyl58pmjy8h82xka7vb7qh4jz2mwdv8d93",
"type": "tarball", "type": "tarball",
"url": "https://github.com/kittywitch/nixexprs/archive/1d3794d833bd3c76f5244410b44f947b8b0460b1.tar.gz", "url": "https://github.com/kittywitch/nixexprs/archive/72c9b8619aabcf1e4e44511494f52b465e1687b8.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}, },
"niv": { "niv": {

@ -1 +1 @@
Subproject commit 1d3794d833bd3c76f5244410b44f947b8b0460b1 Subproject commit 72c9b8619aabcf1e4e44511494f52b465e1687b8