summary refs log tree commit diff
path: root/modules/ddns.nix
blob: c9d2abdf9fb6164f9471e1f99922374424757fb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ me, ... }:

let
  domain = "rnrd.eu";
in
{
  services.ddclient = {
    enable = true;

    # Cloudflare DNS API parameters

    # dyn.com no longer supports HTTPS :(
    # See: https://github.com/ddclient/ddclient/issues/597
    # TODO: Update to new usev6 option in 24.11
    extraConfig = ''
      usev6=webv6, webv6=ipv6.icanhazip.com/
    '';
    protocol = "cloudflare";

    username = "token";
    zone = domain;
    domains = [ "${me.name}.${domain}" ];
    # TODO: use age
    passwordFile = "/home/mel/cloudflare-dns-token.pw";
  };
}