@@ -7,7 +7,7 @@ let
77
88 stateDir = "/var/spool/ddclient";
99 ddclientUser = "ddclient";
10− ddclientFlags = "-foreground -verbose -noquiet -file ${config.services.ddclient.configFile}";
10+ ddclientFlags = "-foreground -file ${config.services.ddclient.configFile}";
1111 ddclientPIDFile = "${stateDir}/ddclient.pid";
1212
1313in
@@ -102,6 +102,22 @@ in
102102 Method to determine the IP address to send to the dynamic DNS provider.
103103 '';
104104 };
105+
106+ verbose = mkOption {
107+ default = true;
108+ type = bool;
109+ description = ''
110+ Print verbose information.
111+ '';
112+ };
113+
114+ quiet = mkOption {
115+ default = false;
116+ type = bool;
117+ description = ''
118+ Print no messages for unnecessary updates.
119+ '';
120+ };
105121 };
106122 };
107123
@@ -136,6 +152,8 @@ in
136152 lib.optionalString (server != "") "server=${server}"}
137153 ssl=${if config.services.ddclient.ssl then "yes" else "no"}
138154 wildcard=YES
155+ quiet=${if config.services.ddclient.quiet then "yes" else "no"}
156+ verbose=${if config.services.ddclient.verbose then "yes" else "no"}
139157 ${config.services.ddclient.domain}
140158 ${config.services.ddclient.extraConfig}
141159 '';