@@ -67,6 +67,15 @@ with lib;
6767 '';
6868 };
6969
70+ package = mkOption {
71+ type = package;
72+ default = pkgs.ddclient;
73+ defaultText = "pkgs.ddclient";
74+ description = ''
75+ The ddclient executable package run by the service.
76+ '';
77+ };
78+
7079 domains = mkOption {
7180 default = [ "" ];
7281 type = listOf str;
@@ -210,7 +219,7 @@ with lib;
210219 inherit StateDirectory;
211220 Type = "oneshot";
212221 ExecStartPre = "!${pkgs.writeShellScript "ddclient-prestart" preStart}";
213− ExecStart = "${lib.getBin pkgs.ddclient}/bin/ddclient -file /run/${RuntimeDirectory}/ddclient.conf";
222+ ExecStart = "${lib.getBin cfg.package}/bin/ddclient -file /run/${RuntimeDirectory}/ddclient.conf";
214223 };
215224 };
216225