[pi4] Add DDClient service

This commit is contained in:
2025-08-26 19:00:38 +00:00
parent b86e7ee46e
commit 8fe02a39b2
3 changed files with 61 additions and 37 deletions

21
hosts/pi4/ddclient.nix Normal file
View File

@ -0,0 +1,21 @@
# /nix/store/<hash>/ddclient.conf
{ config, common, ... }:
let
domain = common.domain;
cloudflarePasswordKey = "cloudflare/api-token";
in
{
services.ddclient = {
enable = true;
protocol = "cloudflare";
username = "emberal+cloudflare@pm.me";
passwordFile = config.sops.secrets.${cloudflarePasswordKey}.path;
zone = domain;
domains = [
domain
"*.${domain}"
];
};
sops.secrets.${cloudflarePasswordKey} = { };
}