Skip to content

Commit 90c54c3

Browse files
authored
Fix nethermind module (#540)
* missing backslash * Turn off MemoryDenyWriteExecute for nethermind
1 parent d648be1 commit 90c54c3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/nethermind/default.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ in {
114114

115115
filteredArgs = builtins.filter isNormalArg args;
116116
in ''
117-
${datadir}
117+
${datadir} \
118118
${jwtSecret} \
119119
${concatStringsSep " \\\n" filteredArgs} \
120120
${lib.escapeShellArgs cfg.extraArgs}
@@ -132,12 +132,13 @@ in {
132132

133133
# create service config by merging with the base config
134134
serviceConfig = mkMerge [
135-
baseServiceConfig
136135
{
137136
User = serviceName;
138137
StateDirectory = serviceName;
138+
MemoryDenyWriteExecute = false; # setting this option is incompatible with JIT
139139
ExecStart = "${cfg.package}/bin/nethermind ${scriptArgs}";
140140
}
141+
baseServiceConfig
141142
(mkIf (cfg.args.modules.JsonRpc.JwtSecretFile != null) {
142143
LoadCredential = ["jwtsecret:${cfg.args.modules.JsonRpc.JwtSecretFile}"];
143144
})

0 commit comments

Comments
 (0)