nix-config/config/services/ddclient.nix

20 lines
568 B
Nix
Raw Permalink Normal View History

2024-12-20 20:40:27 +01:00
{ config, globals, ... }:
2024-07-26 22:12:48 +02:00
{
age.secrets.cloudflare_token_dns = {
2024-03-05 00:34:50 +01:00
rekeyFile = config.node.secretsDir + "/cloudflare_api_token.age";
mode = "440";
};
2024-01-15 02:13:46 +01:00
# So we only update the A record
networking.enableIPv6 = false;
services.ddclient = {
enable = true;
2024-12-20 20:40:27 +01:00
zone = globals.domains.web;
protocol = "Cloudflare";
username = "token";
usev4 = "webv4, webv4='https://cloudflare.com/cdn-cgi/trace', webv4-skip='ip='";
usev6 = "";
passwordFile = config.age.secrets.cloudflare_token_dns.path;
2024-12-20 20:40:27 +01:00
domains = [ globals.domains.web ];
};
}