summary refs log tree commit diff
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-07-13 22:03:12 +0200
committerGitHub <noreply@github.com>2021-07-13 22:03:12 +0200
commit70e2fceb6a2e4a33aabca138affb3587337e501e (patch)
treec5400d4cbaa081bba6269b05255d52d09ee409a8
parent07b99301a45f4585388bdaa8b0ead6f2062e9ea3 (diff)
parent21f41d8b3387cd0f22479590e860deea0f895d9c (diff)
downloadnixpkgs-70e2fceb6a2e4a33aabca138affb3587337e501e.tar
nixpkgs-70e2fceb6a2e4a33aabca138affb3587337e501e.tar.gz
nixpkgs-70e2fceb6a2e4a33aabca138affb3587337e501e.tar.bz2
nixpkgs-70e2fceb6a2e4a33aabca138affb3587337e501e.tar.lz
nixpkgs-70e2fceb6a2e4a33aabca138affb3587337e501e.tar.xz
nixpkgs-70e2fceb6a2e4a33aabca138affb3587337e501e.tar.zst
nixpkgs-70e2fceb6a2e4a33aabca138affb3587337e501e.zip
Merge pull request #119713 from uonr/master
-rw-r--r--nixos/modules/services/networking/ddclient.nix11
-rw-r--r--pkgs/tools/networking/ddclient/default.nix2
2 files changed, 11 insertions, 2 deletions
diff --git a/nixos/modules/services/networking/ddclient.nix b/nixos/modules/services/networking/ddclient.nix
index 053efe71270..7820eedd932 100644
--- a/nixos/modules/services/networking/ddclient.nix
+++ b/nixos/modules/services/networking/ddclient.nix
@@ -18,6 +18,7 @@ let
     ${lib.optionalString (cfg.zone != "")   "zone=${cfg.zone}"}
     ssl=${boolToStr cfg.ssl}
     wildcard=YES
+    ipv6=${boolToStr cfg.ipv6}
     quiet=${boolToStr cfg.quiet}
     verbose=${boolToStr cfg.verbose}
     ${cfg.extraConfig}
@@ -116,7 +117,15 @@ with lib;
         default = true;
         type = bool;
         description = ''
-          Whether to use to use SSL/TLS to connect to dynamic DNS provider.
+          Whether to use SSL/TLS to connect to dynamic DNS provider.
+        '';
+      };
+
+      ipv6 = mkOption {
+        default = false;
+        type = bool;
+        description = ''
+          Whether to use IPv6.
         '';
       };
 
diff --git a/pkgs/tools/networking/ddclient/default.nix b/pkgs/tools/networking/ddclient/default.nix
index 72daa0608a6..e4bb685b518 100644
--- a/pkgs/tools/networking/ddclient/default.nix
+++ b/pkgs/tools/networking/ddclient/default.nix
@@ -14,7 +14,7 @@ perlPackages.buildPerlPackage rec {
   # perl packages by default get devdoc which isn't present
   outputs = [ "out" ];
 
-  buildInputs = with perlPackages; [ IOSocketSSL DigestSHA1 DataValidateIP JSONPP ];
+  buildInputs = with perlPackages; [ IOSocketSSL DigestSHA1 DataValidateIP JSONPP IOSocketInet6 ];
 
   # Use iproute2 instead of ifconfig
   preConfigure = ''