nix-stuff/roles/server/ddclient.nix

15 lines
381 B
Nix
Executable file

{config, ...}: {
# Set up secrets
sops.secrets.ddclientPassword = {};
services.ddclient = {
enable = true;
usev4 = "webv4, webv4=https://api.ipify.org";
usev6 = "";
protocol = "namecheap";
server = "dynamicdns.park-your-domain.com";
username = "toast003.xyz";
passwordFile = config.sops.secrets.ddclientPassword.path;
domains = ["@"];
};
}