nix-stuff/roles/server/ddclient.nix
2023-06-01 13:07:12 +02:00

16 lines
No EOL
396 B
Nix
Executable file

{ config, ... }:
{
# Set up secrets
age.secrets = { ddclient-passwd.file = ../../secrets/ddclient-passwd; };
services.ddclient = {
enable = true;
use = "web, web=dynamicdns.park-your-domain.com/getip";
protocol = "namecheap";
server = "dynamicdns.park-your-domain.com";
username = "toast003.xyz";
passwordFile = config.age.secrets.ddclient-passwd.path;
domains = [ "@" ];
};
}