Commit 76cabe16 authored by pacien's avatar pacien
Browse files

nixos/ddclient: remove obsolete ipv6 option

Since ddclient@24ba945 (v3.10.0), the type and meaning of the "ipv6"
option has changed. This resulted in the following warning when
starting the service:

    WARNING:  file /run/ddclient/ddclient.conf, line 13:
    Invalid Value for keyword 'ipv6' = 'no'

This therefore removes the matching boolean option.
More advanced configurations can use the "extraConfig" option instead.
parent c38298b8
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
@@ -20,7 +20,6 @@ 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}
@@ -52,6 +51,7 @@ with lib;
        in if value != "" then [ value ] else []))
    (mkRemovedOptionModule [ "services" "ddclient" "homeDir" ] "")
    (mkRemovedOptionModule [ "services" "ddclient" "password" ] "Use services.ddclient.passwordFile instead.")
    (mkRemovedOptionModule [ "services" "ddclient" "ipv6" ] "")
  ];

  ###### interface
@@ -146,15 +146,6 @@ with lib;
        '';
      };

      ipv6 = mkOption {
        default = false;
        type = bool;
        description = lib.mdDoc ''
          Whether to use IPv6.
        '';
      };


      quiet = mkOption {
        default = false;
        type = bool;