NixOS-Config/nixos/server/ddclient.nix

25 lines
675 B
Nix
Raw Normal View History

2024-08-24 22:16:51 -04:00
{pkgs, ...}: {
# DDClient for Dynamic IPs
services.ddclient = let
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}"
];
};
}