mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
31 lines
771 B
Nix
31 lines
771 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
variables.katdns-address = {
|
|
value.shellCommand = "bitw get secrets/katdns -f address";
|
|
type = "string";
|
|
sensitive = true;
|
|
};
|
|
variables.katdns-name = {
|
|
value.shellCommand = "bitw get secrets/katdns -f username";
|
|
type = "string";
|
|
sensitive = true;
|
|
};
|
|
variables.katdns-key = {
|
|
value.shellCommand = "bitw get 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."kittywit.ch." = { provider = "dns.katdns"; };
|
|
}
|