-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
nixos/doc: suggest checking options for declarative package mgmt #77960
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
Some programs might not work without systemd services registered or do not work at full capacity without NixOS module.
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/programs-foo-enable-true-vs-systempackages-foo-is-confusing/5534/8 |
Nice. I think it may be nice to have wording with |
|
IMHO, |
So @jonringer's quote from the forums is good. Here's an updated version with more detail: Generally it is recommended to use options instead of For example,
Not all packages are available with a |
@jtojnar I edited the above. Can you adapt that? I think it is better as not a "note" section. |
Not really sure if this would not derail the section too much. Especially for something that is not relevant to the majority of packages. |
I also think @trusktr's message is somewhat misleading - most of the time, just installing the package is just fine, sometimes it needs some custom dbus or udev magic, for which modules exist, but we don't have modules for all packages in nixpkgs. I'd propose to merge @jtojnar 's version for now (as it already improves the situation quite a lot!), and if we come up with something better, do that in a follow-up PR. |
Yay, thanks so much @jtojnar ❇️ . This is an extremely important part of documentation that was missing. |
Correct me if I'm wrong, but this page as of now is still missing any mention that packages can (and when possible, should?) be installed as modules: https://nixos.org/manual/nixos/stable/index.html#sec-package-management |
The way I read the current note is like this: "Some packages are hard to install and you will fail if you attempt to follow the guide above. So in order to install them, you'll need to play with their options by following this other guide". The wording is very unclear that "options" actually refers to an altogether different way of installing software (via modules) and it does not mention that the same package can be often installed as a package or as a module (that does the same thing + configuration) and that in fact modules should be preferred (?) when possible. I'm not knowledgeable enough about the system to suggest how it should be worded, so I'm only reporting from a user's point of view, but in my opinion the way it should be formatted is something like this: In addition to installing packages by adding them to the list of system packages, some of them can be installed using a mechanism of options/modules: It's even more confusing that there's more ways to install software into the user's environment and it's very unclear for a new user which way is supposed to be used and why, it really needs examples with code and typical usecases as well as best practices in my opinon. TL;DR: currently it's very unclear that "options" actually refers to an alternative (and actually preferred) way of installing software. |
cc @roberth |
Some programs might not work without systemd services registered or do not work at full capacity without NixOS module.
Closes: #77959