blob: e199f1652a529541f912b3495edd5072d6ac961f [file] [log] [blame]
Skyler Grey5e2bc9e2023-08-24 21:58:52 +00001{ config, ... }: {
2 services.cloudflare-dyndns = {
3 enable = true;
4 proxied = false;
5 ipv4 = true;
6 ipv6 = false;
Skyler Grey22428b02023-11-19 13:20:56 +00007 domains = [ "a1.crawling.us" ];
Skyler Grey5e2bc9e2023-08-24 21:58:52 +00008 apiTokenFile = config.sops.secrets.cloudflare_ddns__api_token.path;
9 };
10
11 sops.secrets.cloudflare_ddns__api_token = {
12 mode = "0600";
13 owner = config.users.users.root.name;
14 group = config.users.users.root.group;
Samuel Shuertf68685d2023-10-28 20:07:56 -040015 sopsFile = ../../secrets/cloudflare-ddns.env.bin;
Skyler Grey5e2bc9e2023-08-24 21:58:52 +000016 format = "binary";
17 };
18}