diff --git a/modules/nethermind/args.nix b/modules/nethermind/args.nix index f48a2d622..4925b4f11 100644 --- a/modules/nethermind/args.nix +++ b/modules/nethermind/args.nix @@ -61,6 +61,12 @@ with lib; { description = "Defines whether the JSON RPC service is enabled on node startup."; }; + Host = mkOption { + type = types.str; + default = "127.0.0.1"; + description = "Host for JSON RPC service calls."; + }; + Port = mkOption { type = types.either types.port (types.enum ["\${PORT}"]); default = 8545; diff --git a/modules/nethermind/default.nix b/modules/nethermind/default.nix index e0860928a..7e93508c0 100644 --- a/modules/nethermind/default.nix +++ b/modules/nethermind/default.nix @@ -77,7 +77,7 @@ in { description = "Nethermind Node (${nethermindName})"; environment = { - WEB3_HTTP_HOST = cfg.args.modules.JsonRpc.EngineHost; + WEB3_HTTP_HOST = cfg.args.modules.JsonRpc.Host; WEB3_HTTP_PORT = builtins.toString cfg.args.modules.JsonRpc.Port; };