NixOS-Config/modules/system/services/ddclient/default.nix
2024-10-09 03:36:08 -04:00

24 lines
734 B
Nix

{ pkgs, outputs, ... }:
{
services.ddclient = {
enable = true;
protocol = "cloudflare";
use = "web, web=https://ipinfo.io/ip";
zone = "${outputs.secrets.jimDomain}";
username = "token";
passwordFile = "${pkgs.writeText "cloudflareapikey" outputs.secrets.flareApiKey}";
domains = [
"${outputs.secrets.jimDomain}"
"*.${outputs.secrets.jimDomain}"
"sv.${outputs.secrets.jimDomain}"
"git.${outputs.secrets.jimDomain}"
"rtmp.${outputs.secrets.jimDomain}"
"turn.${outputs.secrets.jimDomain}"
"dew.${outputs.secrets.jimDomain}"
"john.${outputs.secrets.jimDomain}"
"beta.${outputs.secrets.jimDomain}"
"rogue.${outputs.secrets.jimDomain}"
];
};
}