mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
rinnosuke: rework to move DNS records into separate target
This commit is contained in:
parent
f592f34430
commit
dbf80fbe36
5 changed files with 25 additions and 6 deletions
|
|
@ -44,6 +44,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
network = {
|
network = {
|
||||||
|
dns.enable = false;
|
||||||
addresses = {
|
addresses = {
|
||||||
public = {
|
public = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -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.";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
18
config/targets/rinnosuke-domains/default.nix
Normal file
18
config/targets/rinnosuke-domains/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue