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
Add vivaldi to chromium.nix #2483
Conversation
modules/programs/chromium.nix
Outdated
@@ -112,9 +112,13 @@ let | |||
google-chrome-beta = "Google/Chrome Beta"; | |||
google-chrome-dev = "Google/Chrome Dev"; | |||
brave = "BraveSoftware/Brave-Browser"; | |||
vivaldi = "vivaldi"; |
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.
Is this necessary?
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's not, but I left it in for consistency with the other browsers. Should I remove it?
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.
Yeah, I think it's best to only record differences from the default value (like in linuxDirs
below).
modules/programs/chromium.nix
Outdated
linuxDirs = { brave = "BraveSoftware/Brave-Browser"; }; | ||
linuxDirs = { | ||
brave = "BraveSoftware/Brave-Browser"; | ||
vivaldi = "vivaldi"; |
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.
Same, really necessary?
Thanks for the contribution! Added a few comments. |
I think this is ready to go. |
@robertodr still need to address the two comments from @rycee about removing the unnecessary entries in |
modules/programs/chromium.nix
Outdated
@@ -156,6 +158,7 @@ in { | |||
google-chrome-dev = | |||
browserModule pkgs.google-chrome-dev "Google Chrome Dev" false; | |||
brave = browserModule pkgs.brave "Brave Browser" false; | |||
vivaldi = browserModule pkgs.vivaldi "Vivaldi Browser" false; |
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.
@rycee what is the reasoning for hiding other browsers from the documentation? (the last argument to browserModule
controls the visibility)
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 believe it was just to avoid bloating the documentation with the same options over and over just with a slightly different attribute path. Maybe it's not too bad to allow generation of this documentation. Will have to try and see.
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.
Sorry, this should have been merged a long time ago!
cc @sumnerevans
edit: After fixing the conflict in modules/programs/chromium.nix
I fixed up the remaining issues and rebased to master in 742c6cb. |
Description
Checklist
Change is backwards compatible.
Code formatted with
./format
.Code tested through
nix-shell --pure tests -A run.all
.Test cases updated/added. See example.
Commit messages are formatted like
See CONTRIBUTING for more information and recent commit messages for examples.
If this PR adds a new module
Added myself as module maintainer. See example.
Added myself and the module files to
.github/CODEOWNERS
.