summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp <philipp+dev@xndr.de>2021-01-10 17:50:20 +0100
committerPhilipp <philipp+dev@xndr.de>2021-01-11 00:08:23 +0100
commit06c0f165556950665b83e41209f611ddeed4de26 (patch)
treeaed0b38d4e3eeb9d8f85ae3dd91aa7799c01158d
parentf08bfb863718531ca935b6bff38cd945e7c2f257 (diff)
downloadnixpkgs-06c0f165556950665b83e41209f611ddeed4de26.tar
nixpkgs-06c0f165556950665b83e41209f611ddeed4de26.tar.gz
nixpkgs-06c0f165556950665b83e41209f611ddeed4de26.tar.bz2
nixpkgs-06c0f165556950665b83e41209f611ddeed4de26.tar.lz
nixpkgs-06c0f165556950665b83e41209f611ddeed4de26.tar.xz
nixpkgs-06c0f165556950665b83e41209f611ddeed4de26.tar.zst
nixpkgs-06c0f165556950665b83e41209f611ddeed4de26.zip
nixos/murmur: Add overrideable package switch
-rw-r--r--nixos/modules/services/networking/murmur.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/murmur.nix b/nixos/modules/services/networking/murmur.nix
index c6e5649ec47..b03630208df 100644
--- a/nixos/modules/services/networking/murmur.nix
+++ b/nixos/modules/services/networking/murmur.nix
@@ -109,6 +109,13 @@ in
         description = "Host to bind to. Defaults binding on all addresses.";
       };
 
+      package = mkOption {
+        type = types.package;
+        default = pkgs.murmur;
+        defaultText = "pkgs.murmur";
+        description = "Overridable attribute of the murmur package to use.";
+      };
+
       password = mkOption {
         type = types.str;
         default = "";
@@ -299,7 +306,7 @@ in
         Type = if forking then "forking" else "simple";
         PIDFile = mkIf forking "/run/murmur/murmurd.pid";
         EnvironmentFile = mkIf (cfg.environmentFile != null) cfg.environmentFile;
-        ExecStart = "${pkgs.murmur}/bin/murmurd -ini /run/murmur/murmurd.ini";
+        ExecStart = "${cfg.package}/bin/murmurd -ini /run/murmur/murmurd.ini";
         Restart = "always";
         RuntimeDirectory = "murmur";
         RuntimeDirectoryMode = "0700";