2024-08-24 22:16:51 -04:00
|
|
|
{pkgs, ...}: {
|
|
|
|
# DDClient for Dynamic IPs
|
|
|
|
services.ddclient = let
|
2024-08-24 23:09:23 -04:00
|
|
|
secrets = import ../modules/secrets.nix;
|
2024-08-24 22:16:51 -04:00
|
|
|
in {
|
|
|
|
enable = true;
|
|
|
|
protocol = "cloudflare";
|
|
|
|
use = "web, web=https://ipinfo.io/ip";
|
|
|
|
zone = "${secrets.jimDomain}";
|
|
|
|
username = "token";
|
|
|
|
passwordFile = "${pkgs.writeText "cloudflareapikey" secrets.flareApiKey}";
|
|
|
|
domains = [
|
|
|
|
"${secrets.jimDomain}"
|
|
|
|
"*.${secrets.jimDomain}"
|
|
|
|
"beta.${secrets.jimDomain}"
|
|
|
|
"git.${secrets.jimDomain}"
|
|
|
|
"john.${secrets.jimDomain}"
|
|
|
|
"mc.${secrets.jimDomain}"
|
|
|
|
"mx.${secrets.jimDomain}"
|
|
|
|
"panel.${secrets.jimDomain}"
|
|
|
|
"rtmp.${secrets.jimDomain}"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|