mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
35 lines
931 B
Nix
35 lines
931 B
Nix
{ config, meta, lib, ... }: with lib;
|
|
|
|
{
|
|
deploy.gcroot.enable = true;
|
|
|
|
variables.katdns-address = {
|
|
value.shellCommand = "${meta.kw.secrets.command} secrets/katdns -f address";
|
|
type = "string";
|
|
sensitive = true;
|
|
};
|
|
variables.katdns-name = {
|
|
value.shellCommand = "${meta.kw.secrets.command} secrets/katdns -f username";
|
|
type = "string";
|
|
sensitive = true;
|
|
};
|
|
variables.katdns-key = {
|
|
value.shellCommand = "${meta.kw.secrets.command} secrets/katdns -f password";
|
|
type = "string";
|
|
sensitive = true;
|
|
};
|
|
|
|
providers.katdns = {
|
|
type = "dns";
|
|
inputs.update = {
|
|
server = config.variables.katdns-address.ref;
|
|
key_name = config.variables.katdns-name.ref;
|
|
key_secret = config.variables.katdns-key.ref;
|
|
key_algorithm = "hmac-sha512";
|
|
};
|
|
};
|
|
|
|
dns.zones = genAttrs [ "kittywit.ch." "dork.dev." "gensokyo.zone." ] (_: {
|
|
provider = "dns.katdns";
|
|
});
|
|
}
|