-
-
Notifications
You must be signed in to change notification settings - Fork 138
add flake.nix example to how to install tabs #963
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
base: main
Are you sure you want to change the base?
Conversation
I think having flake-based suggestions in there makes sense. I'm not sure these specific suggestions make sense - how/when would you use it like this? Wouldn't you rather just |
You could. But then you wouldn't have a flake.nix |
@raboof what specific suggestions do you think would make more sense? |
@BridgerB I like the approach, but I was actually expecting this to show me how to configure this in a flake based nixos config. Thinking about this it would actually be really nice to show all the alternatives for the more modern syntax. That would mean
I would actually like to have examples for a Not quite sure what a great UI would be, but ideally I could specify or at least distinguish which commands / examples I want shown. For my use-case, I like to not use the old commands where possible, especially Perhaps the easiest way would be to start out with just adding pull requests to slowly add all the tabs, and then worry about making it easier to use by having a separation between the two worlds? I would like to help with this, but since I haven't contributed to nixos-search before I am still a bit lost. |
Thinking about this further, perhaps this would be much better, if the tabs where:
That would map much more cleanly to the actual use cases (that I have) and would allow grouping the old and new, or just multiple ways of doing things inside those tabs much more cleanly. @maintainers sorry, this should perhaps become it's own discussion / issue at this point? Edit: Moved this discussion out to it's own ticket in #978 |
[ text "Then run " | ||
, code [] [ text "nix build" ] | ||
, text " to build the package, " | ||
, code [] [ text "nix run" ] | ||
, text " to run it directly, or " | ||
, code [] [ text "nix develop" ] | ||
, text " to enter a shell with the package available." |
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.
Not sure this text actually is correct. To my understanding you only provide a devShell
with the package, so it cannot be built with nix build
or directly run with nix run
. Only nix develop
will work.
See screenshot for a new "flake.nix" tab in the "How to install xyz?" section:

It works with their currently selected channel (example 24.11 selected):
