14 lines
416 B
Nix
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" ];
|
|
};
|
|
}
|