From 6f3425b6c09095158a3c0126fc08ca841338b025 Mon Sep 17 00:00:00 2001 From: Jordan Ashurst Date: Mon, 14 Sep 2026 01:59:35 -0700 Subject: [PATCH] Adding ddclient --- configuration.nix | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/configuration.nix b/configuration.nix index e06245a..53b6f08 100644 --- a/configuration.nix +++ b/configuration.nix @@ -93,7 +93,7 @@ programs.zsh.enable = true; - networking.hostName = "dogma-nixos"; # Define your hostname. + networking.hostName = "dogma-nixos"; # Configure network connections interactively with nmcli or nmtui. networking.networkmanager.enable = true; @@ -140,6 +140,9 @@ "dedyn/dnsuser" = {}; "github/token" = {}; "gitlab/token" = {}; + "namecheap/ddyn_password" = { + restartUnits = ["ddclient.service"]; + }; }; sops.templates."factorio.json".content = builtins.toJSON { @@ -200,7 +203,6 @@ programs.nix-ld = { enable = true; - libraries = with pkgs; [ zlib zstd @@ -219,6 +221,12 @@ }; environment.systemPackages = with pkgs; [ + qbittorrent + ddclient + telegram-desktop + btop + ungoogled-chromium + opencode doas lan-mouse stylua @@ -292,7 +300,7 @@ ''; #tls ${config.sops.secrets.zerossl_cert.path} ${config.sops.secrets.zerossl_private_key.path} - virtualHosts."centraldogma.dedyn.io:".extraConfig = '' + virtualHosts."centraldogma.site:".extraConfig = '' root * /srv/root/ file_server @@ -435,6 +443,19 @@ services.radarr = { enable = true; }; + + services.ddclient = { + enable = true; + protocol = "namecheap"; + server = "dynamicdns.park-your-domain.com"; + ssl = true; + username = "centraldogma.site"; + domains = ["@" "www"]; + usev4 = "webv4, webv4=ipify-ipv4"; + passwordFile = config.sops.secrets."namecheap/ddyn_password".path; + interval = "5mins"; + }; + services.sonarr = { enable = true; };