-
Notifications
You must be signed in to change notification settings - Fork 8
add basic cardano-node module #45
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
Conversation
b70549e to
a33741a
Compare
a33741a to
c0d02bc
Compare
16e8b44 to
2007c6b
Compare
2007c6b to
6e3d03a
Compare
|
works, with kvm! |
| # import all of our flake nixos modules by default | ||
| nixosModules.default | ||
| # fix missing pkgs.system in tests | ||
| {nixpkgs.overlays = [(_: _: {inherit system;})];} |
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.
Still wondering why in tests there is not pkgs.system...
| checks = | ||
| mapAttrs' | ||
| (name: test: nameValuePair "testing-${test.name}" (cfg._mkCheckFromTest test)) | ||
| (name: test: nameValuePair "nixosTests-${test.name}" test.check) |
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.
In the end you kept a prefix for checks which are tests!
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.
yes but i named it the same as the module :)
| enable = true; | ||
| hostAddr = "0.0.0.0"; | ||
|
|
||
| environment = config.cardanoNix.globals.network; |
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.
So do we want to keep globals as name?
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 fact, we may want to move the options one level up under cardanoNix
| nixosTests.tests.cardano-node = { | ||
| impure = true; | ||
| module = { | ||
| name = "cardano-node-test"; |
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 can drop name here if you want, by the default it would be cardano-node and the corresponding check nixosTests-cardano-node
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 description provided.