Use latest version of ddclient

This commit is contained in:
coolneng 2023-06-23 15:24:47 +02:00
parent 55fe10af93
commit 9b5a6c9bb8
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 14 additions and 1 deletions

View File

@ -1,6 +1,16 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
let wireguard_port = 1194; let
wireguard_port = 1194;
latest-ddclient = pkgs.ddclient.overrideAttrs (old: rec {
src = pkgs.fetchFromGitHub {
owner = "ddclient";
repo = "ddclient";
rev = "3136871720a3c2abf730c9485edc351563765d0e";
sha256 = "sha256-qb1DF0DaVbPgQokGx0t7VVk3pe3KuA8mNRPrBMzhWvU=";
};
});
in { in {
# Enable systemd-networkd # Enable systemd-networkd
@ -38,6 +48,9 @@ in {
services.ddclient = { services.ddclient = {
enable = true; enable = true;
quiet = true; quiet = true;
use = "web, web=freedns";
package = latest-ddclient;
interval = "30min";
protocol = "duckdns"; protocol = "duckdns";
domains = [ "coolneng.duckdns.org" ]; domains = [ "coolneng.duckdns.org" ];
passwordFile = config.age.secrets.ddclient.path; passwordFile = config.age.secrets.ddclient.path;