Compare commits
No commits in common. "d3f9ba91db63368e70d8bb6411dcd46876f95164" and "55fe10af93f74bb6ea97f369fe915cbe1a0a4865" have entirely different histories.
d3f9ba91db
...
55fe10af93
|
@ -1,16 +1,6 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
let
|
let wireguard_port = 1194;
|
||||||
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
|
||||||
|
@ -48,9 +38,6 @@ 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;
|
||||||
|
|
|
@ -28,6 +28,7 @@ in {
|
||||||
chown -R dnsmasq ${stateDir}
|
chown -R dnsmasq ${stateDir}
|
||||||
'';
|
'';
|
||||||
requiredBy = [ "dnsmasq.service" ];
|
requiredBy = [ "dnsmasq.service" ];
|
||||||
|
after = [ "wireguard-wg0.service" ];
|
||||||
startAt = "02:00:00";
|
startAt = "02:00:00";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue