1
Fork 0
satellite/hosts/nixos/lapetus/services/ddclient.nix

29 lines
772 B
Nix
Raw Normal View History

2024-04-07 12:11:57 +02:00
# DDClient is a dynamic dns service
{ config, ... }:
{
imports = [ ../../common/optional/services/acme.nix ];
services.ddclient = {
enable = true;
interval = "1m";
configFile = config.sops.templates."ddclient.conf".path;
};
sops.templates."ddclient.conf".content = ''
# General settings
2024-04-07 12:25:22 +02:00
cache=/var/lib/ddclient/ddclient.cache # See the nixos module for details
2024-04-07 12:11:57 +02:00
foreground=YES
# Routers
use=web, web=checkip.dyndns.com/, web-skip='Current IP Address: '
# Protocols
protocol=porkbun
apikey=${config.sops.placeholder.porkbun_api_key}
secretapikey=${config.sops.placeholder.porkbun_secret_api_key}
root-domain=moonythm.dev # The root domain detection doesn't work properly
2024-04-07 12:11:57 +02:00
real.lapetus.moonythm.dev
'';
}