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

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

    # NameCheap DDNS parameters
    use = "web, web=dynamicdns.park-your-domain.com/getip";
    protocol = "namecheap";
    server = "dynamicdns.park-your-domain.com";

    username = "rnrd.eu";
    domains = [ "${me.name}.${domain}" ];
    # TODO: use age
    passwordFile = "/home/mel/ddclient.pw";
  };
}