erigon: add package option to override default version

Signed-off-by: Jakub Sokołowski <jakub@status.im>

authored by Jakub Sokołowski and committed by Yt c7b3a19d 68d08896

+3 -1
+3 -1
nixos/modules/services/blockchain/ethereum/erigon.nix
··· 13 services.erigon = { 14 enable = mkEnableOption (lib.mdDoc "Ethereum implementation on the efficiency frontier"); 15 16 extraArgs = mkOption { 17 type = types.listOf types.str; 18 description = lib.mdDoc "Additional arguments passed to Erigon"; ··· 92 93 serviceConfig = { 94 LoadCredential = "ERIGON_JWT:${cfg.secretJwtPath}"; 95 - ExecStart = "${pkgs.erigon}/bin/erigon --config ${configFile} --authrpc.jwtsecret=%d/ERIGON_JWT ${lib.escapeShellArgs cfg.extraArgs}"; 96 DynamicUser = true; 97 Restart = "on-failure"; 98 StateDirectory = "erigon";
··· 13 services.erigon = { 14 enable = mkEnableOption (lib.mdDoc "Ethereum implementation on the efficiency frontier"); 15 16 + package = mkPackageOptionMD pkgs "erigon" { }; 17 + 18 extraArgs = mkOption { 19 type = types.listOf types.str; 20 description = lib.mdDoc "Additional arguments passed to Erigon"; ··· 94 95 serviceConfig = { 96 LoadCredential = "ERIGON_JWT:${cfg.secretJwtPath}"; 97 + ExecStart = "${cfg.package}/bin/erigon --config ${configFile} --authrpc.jwtsecret=%d/ERIGON_JWT ${lib.escapeShellArgs cfg.extraArgs}"; 98 DynamicUser = true; 99 Restart = "on-failure"; 100 StateDirectory = "erigon";