NixOS-Config/nixos/server/ddclient.nix

23 lines
727 B
Nix
Raw Normal View History

{pkgs, outputs, ...}: {
2024-09-10 21:39:12 -04:00
# Dynamic IPs for Cloudflare records
services.ddclient = {
2024-08-24 22:16:51 -04:00
enable = true;
protocol = "cloudflare";
use = "web, web=https://ipinfo.io/ip";
zone = "${outputs.secrets.jimDomain}";
2024-08-24 22:16:51 -04:00
username = "token";
passwordFile = "${pkgs.writeText "cloudflareapikey" outputs.secrets.flareApiKey}";
2024-08-24 22:16:51 -04:00
domains = [
"${outputs.secrets.jimDomain}"
"*.${outputs.secrets.jimDomain}"
"beta.${outputs.secrets.jimDomain}"
"git.${outputs.secrets.jimDomain}"
"john.${outputs.secrets.jimDomain}"
"mc.${outputs.secrets.jimDomain}"
"mx.${outputs.secrets.jimDomain}"
"rtmp.${outputs.secrets.jimDomain}"
"turn.${outputs.secrets.jimDomain}"
2024-08-24 22:16:51 -04:00
];
};
}