You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Document conventions around environment.systemPackages #12575
2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS9.needs: documentationThis needs to be documented well.9.needs: reporter feedbackThis issue needs the person who filed it to respond
I've noticed many services automatically adding packages to environment.systemPackages and it feels kind of weird to me. I don't know if there's an intentional convention here (couldn't find any guidelines in document), but it seems strange to me to do that.
So basically, is it sensible for us to keep doing that? If so, let's document it and why. If not, let's document that and remove all the undesired systemPackages from current services.
Some services probably need some interaction with users to be usable, having to add pkgs.lxc to systemPackages by hand is an unnecessary bloat as to use lxc containers you will always want to enable the module and then also have the commands available.
Eh, I don't usually want things implicitly in scope, and I can't easily take things out of it. Take a multi-user system. Just because the system has a service turned on doesn't mean that all users should get their scope polluted with it. I usually use nix-shell to get environments.
I'm not really sure about this.. I kind of expect to have a working lxc including control commands when turning on virtualisation.lxc.enable, don't know how other people feel about this.
But there definitely are services where I adding the binaries to the environment is unnecessary, don't have one at hand at the moment which does that, but nginx were such a case.
This has been automatically marked as stale because it has had no activity for 180 days.
If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.
Here are suggestions that might help resolve this more quickly:
Search for maintainers and people that previously touched the related code and @ mention them in a comment.
2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS9.needs: documentationThis needs to be documented well.9.needs: reporter feedbackThis issue needs the person who filed it to respond
Activity
globin commentedon Jan 23, 2016
Some services probably need some interaction with users to be usable, having to add
pkgs.lxcto systemPackages by hand is an unnecessary bloat as to use lxc containers you will always want to enable the module and then also have the commands available.copumpkin commentedon Jan 24, 2016
Eh, I don't usually want things implicitly in scope, and I can't easily take things out of it. Take a multi-user system. Just because the system has a service turned on doesn't mean that all users should get their scope polluted with it. I usually use
nix-shellto get environments.globin commentedon Jan 24, 2016
Generally yes!
I'm not really sure about this.. I kind of expect to have a working lxc including control commands when turning on
virtualisation.lxc.enable, don't know how other people feel about this.But there definitely are services where I adding the binaries to the environment is unnecessary, don't have one at hand at the moment which does that, but nginx were such a case.
FRidh commentedon Jan 24, 2016
I suppose many services should add their packages to
system.extraDependenciesinstead ofenvironment.systemPackages?globin commentedon Jan 24, 2016
In most cases using the specific command in the service script should be enough.
copumpkin commentedon Feb 6, 2016
5c20877
nixos: require pkgs.which
Profpatsch commentedon Jun 23, 2018
triage: what’s the status? Maybe a linter could be added.
stale commentedon Jun 4, 2020
Thank you for your contributions.
This has been automatically marked as stale because it has had no activity for 180 days.
If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.
Here are suggestions that might help resolve this more quickly: