Skip to content

Commit

Permalink
Fix nethermind module (#540)
Browse files Browse the repository at this point in the history
* missing backslash

* Turn off MemoryDenyWriteExecute for nethermind
  • Loading branch information
ekimber authored Aug 7, 2024
1 parent d648be1 commit 90c54c3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/nethermind/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ in {

filteredArgs = builtins.filter isNormalArg args;
in ''
${datadir}
${datadir} \
${jwtSecret} \
${concatStringsSep " \\\n" filteredArgs} \
${lib.escapeShellArgs cfg.extraArgs}
Expand All @@ -132,12 +132,13 @@ in {

# create service config by merging with the base config
serviceConfig = mkMerge [
baseServiceConfig
{
User = serviceName;
StateDirectory = serviceName;
MemoryDenyWriteExecute = false; # setting this option is incompatible with JIT
ExecStart = "${cfg.package}/bin/nethermind ${scriptArgs}";
}
baseServiceConfig
(mkIf (cfg.args.modules.JsonRpc.JwtSecretFile != null) {
LoadCredential = ["jwtsecret:${cfg.args.modules.JsonRpc.JwtSecretFile}"];
})
Expand Down

0 comments on commit 90c54c3

Please sign in to comment.