17 lines
440 B
Nix
17 lines
440 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
{
|
||
|
config = lib.mkIf config.system.webserver.enable {
|
||
|
services.ddclient = {
|
||
|
enable = true;
|
||
|
protocol = "cloudflare";
|
||
|
zone = "${config.domains.p2}";
|
||
|
usev6 = "";
|
||
|
username = "token";
|
||
|
passwordFile = "${pkgs.writeText "cloudflareapikey" config.secrets.flareApiKey}";
|
||
|
};
|
||
|
environment.persistence."/persist".directories = [
|
||
|
"/var/lib/private/ddclient"
|
||
|
];
|
||
|
};
|
||
|
}
|