summary refs log tree commit diff
path: root/nixos/modules/services/networking/ddclient.nix
diff options
context:
space:
mode:
authorarcnmx <arcnmx@users.noreply.github.com>2021-11-06 08:38:22 -0700
committerarcnmx <arcnmx@users.noreply.github.com>2021-11-06 08:50:39 -0700
commitcdd385510a69ada4a0c6b3e2348ad6aa4b88344e (patch)
tree74563eac787de73895468d6572e011c561a91120 /nixos/modules/services/networking/ddclient.nix
parent7deb5247a5da4f468a0abe464275f6c913c5f33f (diff)
downloadnixpkgs-cdd385510a69ada4a0c6b3e2348ad6aa4b88344e.tar
nixpkgs-cdd385510a69ada4a0c6b3e2348ad6aa4b88344e.tar.gz
nixpkgs-cdd385510a69ada4a0c6b3e2348ad6aa4b88344e.tar.bz2
nixpkgs-cdd385510a69ada4a0c6b3e2348ad6aa4b88344e.tar.lz
nixpkgs-cdd385510a69ada4a0c6b3e2348ad6aa4b88344e.tar.xz
nixpkgs-cdd385510a69ada4a0c6b3e2348ad6aa4b88344e.tar.zst
nixpkgs-cdd385510a69ada4a0c6b3e2348ad6aa4b88344e.zip
nixos/ddclient: customizable package option
Diffstat (limited to 'nixos/modules/services/networking/ddclient.nix')
-rw-r--r--nixos/modules/services/networking/ddclient.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/ddclient.nix b/nixos/modules/services/networking/ddclient.nix
index 5fb8d79fe56..fd9c216b060 100644
--- a/nixos/modules/services/networking/ddclient.nix
+++ b/nixos/modules/services/networking/ddclient.nix
@@ -67,6 +67,15 @@ with lib;
         '';
       };
 
+      package = mkOption {
+        type = package;
+        default = pkgs.ddclient;
+        defaultText = "pkgs.ddclient";
+        description = ''
+          The ddclient executable package run by the service.
+        '';
+      };
+
       domains = mkOption {
         default = [ "" ];
         type = listOf str;
@@ -210,7 +219,7 @@ with lib;
         inherit StateDirectory;
         Type = "oneshot";
         ExecStartPre = "!${pkgs.writeShellScript "ddclient-prestart" preStart}";
-        ExecStart = "${lib.getBin pkgs.ddclient}/bin/ddclient -file /run/${RuntimeDirectory}/ddclient.conf";
+        ExecStart = "${lib.getBin cfg.package}/bin/ddclient -file /run/${RuntimeDirectory}/ddclient.conf";
       };
     };