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; programs.zsh.enable = true;
networking.hostName = "dogma-nixos"; # Define your hostname. networking.hostName = "dogma-nixos";
# Configure network connections interactively with nmcli or nmtui. # Configure network connections interactively with nmcli or nmtui.
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
@@ -140,6 +140,9 @@
"dedyn/dnsuser" = {}; "dedyn/dnsuser" = {};
"github/token" = {}; "github/token" = {};
"gitlab/token" = {}; "gitlab/token" = {};
"namecheap/ddyn_password" = {
restartUnits = ["ddclient.service"];
};
}; };
sops.templates."factorio.json".content = builtins.toJSON { sops.templates."factorio.json".content = builtins.toJSON {
@@ -200,7 +203,6 @@
programs.nix-ld = { programs.nix-ld = {
enable = true; enable = true;
libraries = with pkgs; [ libraries = with pkgs; [
zlib zlib
zstd zstd
@@ -219,6 +221,12 @@
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
qbittorrent
ddclient
telegram-desktop
btop
ungoogled-chromium
opencode
doas doas
lan-mouse lan-mouse
stylua stylua
@@ -292,7 +300,7 @@
''; '';
#tls ${config.sops.secrets.zerossl_cert.path} ${config.sops.secrets.zerossl_private_key.path} #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/ root * /srv/root/
file_server file_server
@@ -435,6 +443,19 @@
services.radarr = { services.radarr = {
enable = true; 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 = { services.sonarr = {
enable = true; enable = true;
}; };