Skip to content
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

reduce amount of installed packages when activating xserver.enable #146269

Closed
fogti opened this issue Nov 16, 2021 · 2 comments
Closed

reduce amount of installed packages when activating xserver.enable #146269

fogti opened this issue Nov 16, 2021 · 2 comments

Comments

@fogti
Copy link
Contributor

fogti commented Nov 16, 2021

I use wayland/sway for basically all desktop work, but the nixos module for my display manager (lightdm) requires that xserver.enable is set to true. This causes environment.systemPackages to be kinda polluted with packages like xterm, which I didn't even use when primarily using XMonad before.

It would be nice if the set of packages which are installed when xserver.enable is set to true could be split into a subset installed into environment.systemPackages and environment.defaultPackages. (so that if the user wants to reduce the installed packages to a more bare-minimum, they can just override environment.defaultPackages = lib.mkForce [];). This would require a change to the definition of defaultPackages, so that, instead of supplying a default value, it would just supply the set with "somewhat below normal" override priority, which would be needed to be replicated across all modules which would utilize this (currently there are afaik none besides environment).

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
  - environment
  - services.xserver.enable
  - services.xserver.displayManager.lightdm
@Artturin
Copy link
Member

#139984

@Artturin Artturin self-assigned this Nov 17, 2021
@SuperSamus
Copy link
Contributor

Partially solved by #168194.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants