New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nimbus: init at 23.2.0 #193216
base: master
Are you sure you want to change the base?
nimbus: init at 23.2.0 #193216
Conversation
7a6297e
to
1ae24df
Compare
I have tested this using the following {
services.geth = {
mainnet = {
enable = true;
authrpc = {
enable = true;
port = 8551;
vhosts = ["localhost"];
jwtsecret = "/etc/geth/jwtsecret";
};
};
};
services.nimbus-beacon-node = {
enable = true;
web3Urls = ["http://localhost:8551"];
jwtSecret = "/etc/geth/jwtsecret";
rest.enable = true;
};
environment.etc."geth/jwtsecret" = {
mode = "0444";
text = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
};
services.getty.autologinUser = "root";
systemd.services.geth-mainnet.serviceConfig.StandardOutput = "journal+console";
systemd.services.nimbus-beacon-node.serviceConfig.StandardOutput = "journal+console";
} And ran it using: nixos-generate -f vm-nogui -c $PWD/config.nix -I nixpkgs=$HOME/work/nixpkgs Which worked without issues. |
10a3c2a
to
e2ca260
Compare
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a few comments after a look over the module. Please let me know if you have any questions.
Thanks for the feedback @aanderse, I didn't know I've addressed most point aside from the user creation, which I think is necessary since the user has to manage their validator files permissions and for that a static user is necessary, so we can't use the |
d3877c8
to
b2e9c14
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The enable option should probably also reference the doc
"--rest=${boolToString cfg.rest.enable}" | ||
] ++ optionals cfg.rest.enable [ | ||
"--rest-address=${cfg.rest.address}" | ||
"--rest-port=${toString cfg.rest.port}" | ||
] ++ [ | ||
"--metrics=${boolToString cfg.metrics.enable}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"--rest=${boolToString cfg.rest.enable}" | |
] ++ optionals cfg.rest.enable [ | |
"--rest-address=${cfg.rest.address}" | |
"--rest-port=${toString cfg.rest.port}" | |
] ++ [ | |
"--metrics=${boolToString cfg.metrics.enable}" | |
"--rest=${boolToString cfg.rest.enable}" | |
"--metrics=${boolToString cfg.metrics.enable}" | |
] ++ optionals cfg.rest.enable [ | |
"--rest-address=${cfg.rest.address}" | |
"--rest-port=${toString cfg.rest.port}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why would I mix the order of flags with different prefixes? Looks ugly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should group the flags together that are unconditional. Having some between the conditional ones is confusing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I disagree. I'd say mixing different prefixes is what's confusing. All --rest*
flags and all --metrics*
flags should be grouped in their respective blocks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is more confusing if conditional and none conditional flags are mixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, in my opinion it's more confusing if you have flags with different prefixes mixed rather than grouped.
But if you intend to block this PR on this issue then I will change it.
4c6a7a1
to
9e87264
Compare
Nimbus is a client for the Ethereum consensus layer (eth2) and execution layer (eth1) that is lightweight, secure and easy to use. Signed-off-by: Jakub Sokołowski <jakub@status.im>
Nimbus beacon node is an Ethereum consensus layer client. Should be deployed together with an execution layer client like Geth. Signed-off-by: Jakub Sokołowski <jakub@status.im>
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/1910 |
Description of changes
Nimbus is a client for the Ethereum consensus layer that is lightweight, secure and easy to use.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes