16 lines
495 B
Nix
16 lines
495 B
Nix
{config, ...}: {
|
|
age.secrets.cloudflare_token_dns = {
|
|
rekeyFile = ../../secrets/cloudflare/api_token.age;
|
|
mode = "440";
|
|
};
|
|
services.ddclient = {
|
|
enable = true;
|
|
zone = config.secrets.secrets.global.domains.mail;
|
|
protocol = "Cloudflare";
|
|
username = "token";
|
|
use = "web, web='https://cloudflare.com/cdn-cgi/trace', web-skip='ip='";
|
|
passwordFile = config.age.secrets.cloudflare_token_dns.path;
|
|
domains = [config.secrets.secrets.global.domains.mail];
|
|
};
|
|
}
|