Adding ddclient

This commit is contained in:
Jordan Ashurst
2026-09-14 01:59:35 -07:00
parent ff1d937af7
commit 6f3425b6c0
+24 -3
View File
@@ -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;
};