1
0
Fork 0

Hevana: switch from Oink to DDClient

This commit is contained in:
Aires 2024-11-08 20:04:11 -05:00
parent 2ccda9b918
commit a648c16525

View file

@ -40,30 +40,17 @@ in
time.timeZone = "America/New_York";
# Enable dynamic DNS with Porkbun
services.oink = {
services.ddclient = {
enable = true;
settings = {
apiKey = config.secrets.networking.porkbun.api.apiKey;
secretApiKey = config.secrets.networking.porkbun.api.secretKey;
};
domains = [
{
domain = config.secrets.networking.domains.blog;
subdomain = "";
}
{
domain = config.secrets.networking.domains.blog;
subdomain = "*";
}
{
domain = config.secrets.networking.domains.primary;
subdomain = "";
}
{
domain = config.secrets.networking.domains.primary;
subdomain = "*";
}
];
configFile = pkgs.writeText "ddclient.conf" ''
use=web, web=checkip.dyndns.com/, web-skip='IP Address'
protocol=porkbun
apikey=${config.secrets.networking.porkbun.api.apiKey}
secretapikey=${config.secrets.networking.porkbun.api.secretKey}
*.${config.secrets.networking.domains.primary},*.${config.secrets.networking.domains.blog}
cache=/tmp/ddclient.cache
pid=/var/run/ddclient.pid
'';
};
# Configure the system.