nixos-config/modules/system/services/server/ddclient/default.nix
2025-02-25 03:03:43 -05:00

14 lines
416 B
Nix

{ config, lib, pkgs, ... }:
{
config = lib.mkIf config.system.server.enable {
services.ddclient = {
enable = true;
protocol = "cloudflare";
zone = "nixfox.ca";
usev6 = "";
username = "token";
passwordFile = "${pkgs.writeText "cloudflareapikey" config.secrets.flareApiKey}";
};
environment.persistence."/persist".directories = [ "/var/lib/private/ddclient" ];
};
}