NixOS-Config/modules/system/services/server/ddclient/default.nix

24 lines
721 B
Nix
Raw Normal View History

{ pkgs, config, ... }:
2024-10-09 03:36:08 -04:00
{
services.ddclient = {
2024-08-24 22:16:51 -04:00
enable = true;
protocol = "cloudflare";
use = "web, web=https://ipinfo.io/ip";
zone = "${config.secrets.jimDomain}";
2024-08-24 22:16:51 -04:00
username = "token";
passwordFile = "${pkgs.writeText "cloudflareapikey" config.secrets.flareApiKey}";
2024-08-24 22:16:51 -04:00
domains = [
"${config.secrets.jimDomain}"
"*.${config.secrets.jimDomain}"
"sv.${config.secrets.jimDomain}"
"git.${config.secrets.jimDomain}"
"rtmp.${config.secrets.jimDomain}"
"turn.${config.secrets.jimDomain}"
"dew.${config.secrets.jimDomain}"
"john.${config.secrets.jimDomain}"
"beta.${config.secrets.jimDomain}"
"rogue.${config.secrets.jimDomain}"
2024-08-24 22:16:51 -04:00
];
};
}