Skip to content

Commit

Permalink
config(modules/erigon): Remove blst-portable as option
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinNikov committed Jul 18, 2024
1 parent 87fcfb6 commit 581d01d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
7 changes: 1 addition & 6 deletions modules/erigon/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,6 @@ in {
${concatStringsSep " \\\n" filteredArgs} \
${lib.escapeShellArgs cfg.extraArgs}
'';

package =
if cfg.blst-portable
then pkgs.erigon-blst-portable
else cfg.package;
in
nameValuePair serviceName (mkIf cfg.enable {
description = "Erigon Ethereum node (${erigonName})";
Expand All @@ -122,7 +117,7 @@ in {
ExecStartPre = mkIf cfg.subVolume (mkBefore [
"+${scripts.setupSubVolume} /var/lib/private/${serviceName}"
]);
ExecStart = "${package}/bin/erigon ${scriptArgs}";
ExecStart = "${cfg.package}/bin/erigon ${scriptArgs}";
}
(mkIf (cfg.args.authrpc.jwtsecret != null) {
LoadCredential = ["jwtsecret:${cfg.args.authrpc.jwtsecret}"];
Expand Down
6 changes: 0 additions & 6 deletions modules/erigon/options.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@
default = [];
};

blst-portable = mkOption {
type = types.bool;
default = false;
description = lib.mdDoc "Make blst library used by erigon build in portable mode. When this option is enabled, the package option is ignored.";
};

package = mkOption {
type = types.package;
default = pkgs.erigon;
Expand Down

0 comments on commit 581d01d

Please sign in to comment.