about summary refs log tree commit diff
path: root/nixos/modules/services/blockchain/ethereum
diff options
context:
space:
mode:
authorgeorgewhewell <georgerw@gmail.com>2022-11-28 11:17:02 +0100
committerYt <happysalada@proton.me>2022-11-28 08:38:50 -0500
commit2fc9e88c8c474a03f1fea90fa1926395582fd3a3 (patch)
treeb00da103b9bc7c2ac89547fb299e811b83be7b24 /nixos/modules/services/blockchain/ethereum
parent74019c746a3adc028fd023060ec7a2b9a8f3daac (diff)
nixos/erigon: add extraArgs
Diffstat (limited to 'nixos/modules/services/blockchain/ethereum')
-rw-r--r--nixos/modules/services/blockchain/ethereum/erigon.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/nixos/modules/services/blockchain/ethereum/erigon.nix b/nixos/modules/services/blockchain/ethereum/erigon.nix
index 9ff7df0b15e56..8ebe0fcaff549 100644
--- a/nixos/modules/services/blockchain/ethereum/erigon.nix
+++ b/nixos/modules/services/blockchain/ethereum/erigon.nix
@@ -13,6 +13,12 @@ in {
     services.erigon = {
       enable = mkEnableOption (lib.mdDoc "Ethereum implementation on the efficiency frontier");
 
+      extraArgs = mkOption {
+        type = types.listOf types.str;
+        description = lib.mdDoc "Additional arguments passed to Erigon";
+        default = [ ];
+      };
+
       secretJwtPath = mkOption {
         type = types.path;
         description = lib.mdDoc ''
@@ -86,7 +92,7 @@ in {
 
       serviceConfig = {
         LoadCredential = "ERIGON_JWT:${cfg.secretJwtPath}";
-        ExecStart = "${pkgs.erigon}/bin/erigon --config ${configFile} --authrpc.jwtsecret=%d/ERIGON_JWT";
+        ExecStart = "${pkgs.erigon}/bin/erigon --config ${configFile} --authrpc.jwtsecret=%d/ERIGON_JWT ${lib.escapeShellArgs cfg.extraArgs}";
         DynamicUser = true;
         Restart = "on-failure";
         StateDirectory = "erigon";