20 lines
501 B
Nix
Executable file
20 lines
501 B
Nix
Executable file
{ config, flakeSelf, ... }:
|
|
|
|
let
|
|
hostSecrets = "${flakeSelf.inputs.secrets}/" + config.networking.hostName;
|
|
in
|
|
|
|
{
|
|
# Set up secrets
|
|
age.secrets = { ddclient-passwd.file = hostSecrets + "/ddclient-password.age"; };
|
|
|
|
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 = [ "@" ];
|
|
};
|
|
}
|