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