nixos/xserver: add excludePackages option
to remove packages environment.systemPackages
This commit is contained in:
parent
42948b3006
commit
28e936ba64
|
@ -181,6 +181,13 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
excludePackages = mkOption {
|
||||||
|
default = [];
|
||||||
|
example = literalExpression "[ pkgs.xterm ]";
|
||||||
|
type = types.listOf types.package;
|
||||||
|
description = "Which X11 packages to exclude from the default environment";
|
||||||
|
};
|
||||||
|
|
||||||
exportConfiguration = mkOption {
|
exportConfiguration = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
|
@ -655,7 +662,7 @@ in
|
||||||
${cfgPath}.source = xorg.xf86inputevdev.out + "/share" + cfgPath;
|
${cfgPath}.source = xorg.xf86inputevdev.out + "/share" + cfgPath;
|
||||||
});
|
});
|
||||||
|
|
||||||
environment.systemPackages =
|
environment.systemPackages = pkgs.gnome.removePackagesByName
|
||||||
[ xorg.xorgserver.out
|
[ xorg.xorgserver.out
|
||||||
xorg.xrandr
|
xorg.xrandr
|
||||||
xorg.xrdb
|
xorg.xrdb
|
||||||
|
@ -671,7 +678,7 @@ in
|
||||||
pkgs.xdg-utils
|
pkgs.xdg-utils
|
||||||
xorg.xf86inputevdev.out # get evdev.4 man page
|
xorg.xf86inputevdev.out # get evdev.4 man page
|
||||||
pkgs.nixos-icons # needed for gnome and pantheon about dialog, nixos-manual and maybe more
|
pkgs.nixos-icons # needed for gnome and pantheon about dialog, nixos-manual and maybe more
|
||||||
]
|
] config.services.xserver.excludePackages
|
||||||
++ optional (elem "virtualbox" cfg.videoDrivers) xorg.xrefresh;
|
++ optional (elem "virtualbox" cfg.videoDrivers) xorg.xrefresh;
|
||||||
|
|
||||||
environment.pathsToLink = [ "/share/X11" ];
|
environment.pathsToLink = [ "/share/X11" ];
|
||||||
|
|
Loading…
Reference in a new issue