summary refs log tree commit diff
path: root/nixos/modules/services/networking/ddclient.nix
diff options
context:
space:
mode:
authorDaniel Ehlers <ehlers@rz.uni-kiel.de>2017-03-06 16:41:02 +0100
committerRobert Helgesson <robert@rycee.net>2017-03-07 22:03:22 +0100
commit0bd211d84f66975380c35386b7b19a69d1beff44 (patch)
tree092c3be4a5d855e2a30d7e2d6180c5f31c76f9c0 /nixos/modules/services/networking/ddclient.nix
parentac0021ce53d2f9d8b26aa5374ccac1cc3e4b270d (diff)
downloadnixpkgs-0bd211d84f66975380c35386b7b19a69d1beff44.tar
nixpkgs-0bd211d84f66975380c35386b7b19a69d1beff44.tar.gz
nixpkgs-0bd211d84f66975380c35386b7b19a69d1beff44.tar.bz2
nixpkgs-0bd211d84f66975380c35386b7b19a69d1beff44.tar.lz
nixpkgs-0bd211d84f66975380c35386b7b19a69d1beff44.tar.xz
nixpkgs-0bd211d84f66975380c35386b7b19a69d1beff44.tar.zst
nixpkgs-0bd211d84f66975380c35386b7b19a69d1beff44.zip
ddclient: Make verbose logging deactivatable.
Diffstat (limited to 'nixos/modules/services/networking/ddclient.nix')
-rw-r--r--nixos/modules/services/networking/ddclient.nix20
1 files changed, 19 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/ddclient.nix b/nixos/modules/services/networking/ddclient.nix
index 5928203368d..28c96a9baef 100644
--- a/nixos/modules/services/networking/ddclient.nix
+++ b/nixos/modules/services/networking/ddclient.nix
@@ -7,7 +7,7 @@ let
 
   stateDir = "/var/spool/ddclient";
   ddclientUser = "ddclient";
-  ddclientFlags = "-foreground -verbose -noquiet -file ${config.services.ddclient.configFile}";
+  ddclientFlags = "-foreground -file ${config.services.ddclient.configFile}";
   ddclientPIDFile = "${stateDir}/ddclient.pid";
 
 in
@@ -102,6 +102,22 @@ in
           Method to determine the IP address to send to the dynamic DNS provider.
         '';
       };
+
+      verbose = mkOption {
+        default = true;
+        type = bool;
+        description = ''
+          Print verbose information.
+        '';
+      };
+
+      quiet = mkOption {
+        default = false;
+        type = bool;
+        description = ''
+          Print no messages for unnecessary updates.
+        '';
+      };
     };
   };
 
@@ -136,6 +152,8 @@ in
           lib.optionalString (server != "") "server=${server}"}
         ssl=${if config.services.ddclient.ssl then "yes" else "no"}
         wildcard=YES
+        quiet=${if config.services.ddclient.quiet then "yes" else "no"}
+        verbose=${if config.services.ddclient.verbose then "yes" else "no"}
         ${config.services.ddclient.domain}
         ${config.services.ddclient.extraConfig}
       '';