26 lines
548 B
Nix
26 lines
548 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}: let
|
|
rootDomain = "dylanblades.net";
|
|
passwordFile = config.sops.secrets.dylanblades-net-password.path;
|
|
in {
|
|
imports = with lib.nixosModules; [secrets];
|
|
|
|
sops.secrets.dylanblades-net-password.sopsFile = lib.secrets.ddclient;
|
|
|
|
services.ddclient = {
|
|
enable = true;
|
|
usev4 = "webv4, webv4=dynamicdns.park-your-domain.com/getip";
|
|
protocol = "namecheap";
|
|
server = "dynamicdns.park-your-domain.com";
|
|
username = rootDomain;
|
|
inherit passwordFile;
|
|
domains = [
|
|
"*"
|
|
"@"
|
|
];
|
|
};
|
|
}
|