Skip to content

Document conventions around environment.systemPackages #12575

Closed

Description

@copumpkin

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.

Activity

  1. added
    6.topic: nixos
    9.needs: documentation
    on Jan 23, 2016
  2. globin commented on Jan 23, 2016

    @globin
    Member

    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.

  3. copumpkin commented on Jan 24, 2016

    @copumpkin
    MemberAuthor

    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.

  4. globin commented on Jan 24, 2016

    @globin
    Member

    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.

  5. FRidh commented on Jan 24, 2016

    @FRidh
    Member

    I suppose many services should add their packages to system.extraDependencies instead of environment.systemPackages?

  6. globin commented on Jan 24, 2016

    @globin
    Member

    In most cases using the specific command in the service script should be enough.

  7. copumpkin commented on Feb 6, 2016

    @copumpkin
    MemberAuthor
  8. added
    9.needs: reporter feedback
    on May 2, 2016
  9. added a commit that references this issue on May 11, 2016
  10. Profpatsch commented on Jun 23, 2018

    @Profpatsch
    Member

    triage: what’s the status? Maybe a linter could be added.

  11. stale commented on Jun 4, 2020

    @stale

    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:

    1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
    2. Ask on the NixOS Discourse.
    3. Ask on the #nixos channel on irc.freenode.net.
  12. added
    2.status: stale
    on Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.status: stale6.topic: nixos9.needs: documentation9.needs: reporter feedback

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions