✨ [pi4] Add DDClient service
This commit is contained in:
21
hosts/pi4/ddclient.nix
Normal file
21
hosts/pi4/ddclient.nix
Normal 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} = { };
|
||||
}
|
Reference in New Issue
Block a user