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

23 lines
630 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.domains.jim1}";
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.domains.jim1}"
"*.${config.domains.jim1}"
"sv.${config.domains.jim1}"
"git.${config.domains.jim1}"
"turn.${config.domains.jim1}"
"dew.${config.domains.jim1}"
"john.${config.domains.jim1}"
"beta.${config.domains.jim1}"
"rogue.${config.domains.jim1}"
2024-08-24 22:16:51 -04:00
];
};
}