From 9268da6b04068f99db147b26d9078d2ba6c8700e Mon Sep 17 00:00:00 2001 From: Jesper Geertsen Jonsson Date: Sat, 4 Dec 2021 13:38:05 +0100 Subject: [PATCH] nixos/i2pd: add module package option --- nixos/modules/services/networking/i2pd.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/i2pd.nix b/nixos/modules/services/networking/i2pd.nix index 17828ca44ff2..e1a31a0c2ee0 100644 --- a/nixos/modules/services/networking/i2pd.nix +++ b/nixos/modules/services/networking/i2pd.nix @@ -224,7 +224,7 @@ let i2pdSh = pkgs.writeScriptBin "i2pd" '' #!/bin/sh - exec ${pkgs.i2pd}/bin/i2pd \ + exec ${cfg.package}/bin/i2pd \ ${if cfg.address == null then "" else "--host="+cfg.address} \ --service \ --conf=${i2pdConf} \ @@ -253,6 +253,15 @@ in ''; }; + package = mkOption { + type = types.package; + default = pkgs.i2pd; + defaultText = literalExpression "pkgs.i2pd"; + description = '' + i2pd package to use. + ''; + }; + logLevel = mkOption { type = types.enum ["debug" "info" "warn" "error"]; default = "error";