git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/ddclient: customizable package option
commitcdd385510a69ada4a0c6b3e2348ad6aa4b88344e authorarcnmx <arcnmx@users.noreply.github.com> dateSat 6 Nov 2021, 08:38 (5 years ago) parent7deb524
1 file changed+10−1
nixos/modules/services/networking/ddclient.nix+10−1
nixos/modules/services/networking/ddclient.nix+10−1
@@ -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