Skip to content

Commit

Permalink
feat: Nimbus on Gnosis chains
Browse files Browse the repository at this point in the history
  • Loading branch information
bbjubjub2494 authored and aldoborrero committed Jan 20, 2025
1 parent 876a34c commit b762ebe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/nimbus-beacon/args.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
}:
with lib; {
network = mkOption {
type = types.enum ["mainnet" "prater" "sepolia" "holesky"];
type = types.enum ["mainnet" "prater" "sepolia" "holesky" "gnosis" "chiado"];
default = name;
defaultText = "name";
description = "The Eth2 network to join";
Expand Down
9 changes: 7 additions & 2 deletions modules/nimbus-beacon/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@ in {
${data-dir-arg} \
${concatStringsSep " \\\n" filteredArgs}
'';
bin = let
bins.gnosis = "nimbus_beacon_node_gnosis";
bins.chiado = "nimbus_beacon_node_gnosis";
in
bins.${cfg.args.network} or "nimbus_beacon_node";
in
nameValuePair serviceName (mkIf cfg.enable {
after = ["network.target"];
Expand All @@ -185,9 +190,9 @@ in {
ExecStartPre = lib.mkBefore [
'' ${pkgs.coreutils-full}/bin/cp --no-preserve=all --update=none \
/proc/sys/kernel/random/uuid ${data-dir}/${cfg.args.keymanager.token-file}''
"${cfg.package}/bin/nimbus_beacon_node trustedNodeSync ${checkpointSyncArgs}"
"${cfg.package}/bin/${bin} trustedNodeSync ${checkpointSyncArgs}"
];
ExecStart = "${cfg.package}/bin/nimbus_beacon_node ${scriptArgs}";
ExecStart = "${cfg.package}/bin/${bin} ${scriptArgs}";
}
baseServiceConfig
(mkIf (cfg.args.jwt-secret != null) {
Expand Down
2 changes: 1 addition & 1 deletion pkgs/nimbus/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
applyPatches,
fetchFromGitHub,
pkgs,
targets ? ["nimbus_beacon_node" "nimbus_validator_client"],
targets ? ["nimbus_beacon_node" "nimbus_validator_client" "gnosis-build" "gnosis-vc-build"],
stableSystems ? ["x86_64-linux" "aarch64-linux"],
}: let
version = "24.12.0";
Expand Down

0 comments on commit b762ebe

Please sign in to comment.