Skip to content

Commit b762ebe

Browse files
bbjubjub2494aldoborrero
authored andcommitted
feat: Nimbus on Gnosis chains
1 parent 876a34c commit b762ebe

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

modules/nimbus-beacon/args.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
}:
66
with lib; {
77
network = mkOption {
8-
type = types.enum ["mainnet" "prater" "sepolia" "holesky"];
8+
type = types.enum ["mainnet" "prater" "sepolia" "holesky" "gnosis" "chiado"];
99
default = name;
1010
defaultText = "name";
1111
description = "The Eth2 network to join";

modules/nimbus-beacon/default.nix

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,11 @@ in {
168168
${data-dir-arg} \
169169
${concatStringsSep " \\\n" filteredArgs}
170170
'';
171+
bin = let
172+
bins.gnosis = "nimbus_beacon_node_gnosis";
173+
bins.chiado = "nimbus_beacon_node_gnosis";
174+
in
175+
bins.${cfg.args.network} or "nimbus_beacon_node";
171176
in
172177
nameValuePair serviceName (mkIf cfg.enable {
173178
after = ["network.target"];
@@ -185,9 +190,9 @@ in {
185190
ExecStartPre = lib.mkBefore [
186191
'' ${pkgs.coreutils-full}/bin/cp --no-preserve=all --update=none \
187192
/proc/sys/kernel/random/uuid ${data-dir}/${cfg.args.keymanager.token-file}''
188-
"${cfg.package}/bin/nimbus_beacon_node trustedNodeSync ${checkpointSyncArgs}"
193+
"${cfg.package}/bin/${bin} trustedNodeSync ${checkpointSyncArgs}"
189194
];
190-
ExecStart = "${cfg.package}/bin/nimbus_beacon_node ${scriptArgs}";
195+
ExecStart = "${cfg.package}/bin/${bin} ${scriptArgs}";
191196
}
192197
baseServiceConfig
193198
(mkIf (cfg.args.jwt-secret != null) {

pkgs/nimbus/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
applyPatches,
33
fetchFromGitHub,
44
pkgs,
5-
targets ? ["nimbus_beacon_node" "nimbus_validator_client"],
5+
targets ? ["nimbus_beacon_node" "nimbus_validator_client" "gnosis-build" "gnosis-vc-build"],
66
stableSystems ? ["x86_64-linux" "aarch64-linux"],
77
}: let
88
version = "24.12.0";

0 commit comments

Comments
 (0)