diff --git a/configuration.nix b/configuration.nix index f2199c4..1f1b50d 100644 --- a/configuration.nix +++ b/configuration.nix @@ -160,7 +160,6 @@ with pkgs; owner = "gitea"; group = "gitea"; }; - secrets.ddclient.file = secrets/ddclient.age; secrets.miniflux = { file = secrets/miniflux.age; owner = "miniflux"; @@ -212,6 +211,16 @@ with pkgs; owner = "acme"; group = "nginx"; }; + secrets.inadyn-duckdns = { + file = secrets/inadyn-duckdns.age; + owner = "inadyn"; + group = "inadyn"; + }; + secrets.inadyn-porkbun = { + file = secrets/inadyn-porkbun.age; + owner = "inadyn"; + group = "inadyn"; + }; identityPaths = [ "/etc/ssh/id_ed25519" ]; }; diff --git a/modules/networking.nix b/modules/networking.nix index 391f7b9..67a4891 100644 --- a/modules/networking.nix +++ b/modules/networking.nix @@ -34,13 +34,21 @@ in }; # Dynamic DNS configuration - services.ddclient = { + services.inadyn = { enable = true; - quiet = true; - interval = "30min"; - protocol = "duckdns"; - domains = [ "coolneng.duckdns.org" ]; - passwordFile = config.age.secrets.ddclient.path; + interval = "*:0/30"; + settings = { + provider."duckdns" = { + hostname = "coolneng.duckdns.org"; + include = config.age.secrets.inadyn-duckdns.path; + }; + custom."porkbun.com" = { + ddns-server = "dynamicdns.park-your-domain.com"; + ddns-path = "/update?domain=%u&password=%p&host=%h"; + hostname = "psydnd.org"; + include = config.age.secrets.inadyn-porkbun.path; + }; + }; }; # Firewall configuration diff --git a/secrets/ddclient.age b/secrets/ddclient.age deleted file mode 100644 index 75908aa..0000000 --- a/secrets/ddclient.age +++ /dev/null @@ -1,8 +0,0 @@ -age-encryption.org/v1 --> ssh-ed25519 iUaRGg mRkPNMBvRfbwb3GjcWWJ42RiJn4wxMdczvL2OJFagkY -jCqCSE2MMx74ZvXabmyHfI4jC6lwhtgrTSqjAflUksw --> vH/-grease []_Tx" cZfV JHS /x/ -SK1DATphyeQv8pjoNXTlQrRKQwn8oItd6xrhSic7fmxzmuKTQiPE ---- ObilbWkclfLnmjVql03OamXitnFgYnzfoZ04oq3XO1k -iy݌1k{OJ3HN%y JA8 -'N%L@6 & \ No newline at end of file diff --git a/secrets/inadyn-duckdns.age b/secrets/inadyn-duckdns.age new file mode 100644 index 0000000..ac438e9 --- /dev/null +++ b/secrets/inadyn-duckdns.age @@ -0,0 +1,6 @@ +age-encryption.org/v1 +-> ssh-ed25519 iUaRGg XMrsd1RQcDq/SpFtqpB4Gj1keCvJsMB+VA58qZirYA4 +tf8NQzoEYJXlKBjtX4ZplaPQv51RCW9yHulvKZB8c8g +--- 5wZntAZCQ4pGYrgDFd63w6Y+Taaatcw5z0tDSvShi30 +4Ɖq3& +>4J? QWjZ<:'<x(YiZDO#wRO@2cAj (fM \ No newline at end of file diff --git a/secrets/inadyn-porkbun.age b/secrets/inadyn-porkbun.age new file mode 100644 index 0000000..7fab583 --- /dev/null +++ b/secrets/inadyn-porkbun.age @@ -0,0 +1,6 @@ +age-encryption.org/v1 +-> ssh-ed25519 iUaRGg mjl2NVhvZ+j87U5JLDcun7Lr7nUD9/Ci2mbZbcvn6hk +xzJaZDEwcZmd/qUGMWoFsj6ylsevriwlwVi8znyRpSk +--- IoNqE7dzWBlVySCznCJDS4KEOfBPazWvdzK2GmyQyIw +h_CA~~;nDt]]g¨ +|4M6Y gO.:\Ng/֗iuxm b=6{3 oMG;l^l޵`BnLx|,d29{*|L;!͜ܕVkؚ$:4qG ٪ińAA Aə \ No newline at end of file diff --git a/secrets/secrets.nix b/secrets/secrets.nix index f50ee03..2222d6e 100644 --- a/secrets/secrets.nix +++ b/secrets/secrets.nix @@ -6,7 +6,6 @@ in "syncthing.age".publicKeys = [ zion ]; "msmtp.age".publicKeys = [ zion ]; "gitea.age".publicKeys = [ zion ]; - "ddclient.age".publicKeys = [ zion ]; "miniflux.age".publicKeys = [ zion ]; "git.age".publicKeys = [ zion ]; "dendrite.age".publicKeys = [ zion ]; @@ -17,4 +16,6 @@ in "facebook.age".publicKeys = [ zion ]; "signal.age".publicKeys = [ zion ]; "acme.age".publicKeys = [ zion ]; + "inadyn-duckdns.age".publicKeys = [ zion ]; + "inadyn-porkbun.age".publicKeys = [ zion ]; }