File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 2929 nimbusValidatorName : let
3030 serviceName = "nimbus-validator-${ nimbusValidatorName } " ;
3131 in
32- cfg :
32+ cfg : let
33+ bin = let
34+ bins . gnosis = "nimbus_validator_client_gnosis" ;
35+ bins . chiado = "nimbus_validator_client_gnosis" ;
36+ in
37+ bins . ${ cfg . network } or "nimbus_validator_client" ;
38+ in
3339 nameValuePair serviceName ( mkIf cfg . enable {
3440 after = [ "network.target" ] ;
3541 wantedBy = [ "multi-user.target" ] ;
4450 then cfg . user
4551 else serviceName ;
4652 StateDirectory = serviceName ;
47- ExecStart = "${ cfg . package } /bin/nimbus_validator_client ${ lib . escapeShellArgs cfg . extraArgs } " ;
53+ ExecStart = "${ cfg . package } /bin/${ bin } ${ lib . escapeShellArgs cfg . extraArgs } " ;
4854 MemoryDenyWriteExecute = "false" ;
4955 }
5056 ] ;
Original file line number Diff line number Diff line change 2424 type = types . nullOr types . str ;
2525 description = "Service user" ;
2626 } ;
27+
28+ network = mkOption {
29+ type = types . enum [ "mainnet" "prater" "sepolia" "holesky" "gnosis" "chiado" "hoodi" ] ;
30+ default = "mainnet" ;
31+ description = "The Eth2 network to join" ;
32+ } ;
2733 } ;
2834 } ;
2935in {
You can’t perform that action at this time.
0 commit comments