1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 22:20:51 +00:00
nixpkgs/nixos/modules/services/x11
Ambroz Bizjak d9fa88dfe8 Use a NixOS module for generating the gdk-pixbuf loaders cache.
Fixes issue #33231 and makes it possible to enable Plasma and KDE at the same time.

Previously, this worked like this:
- The gdk-pixbuf package comes with a cache file covering the modules bundled
  with gdk-pixbuf.
- The librsvg package comes with a cache covering modules from gdk-pixbuf as
  well as librsvg.
- plasma5 and xfce modules set the environment variable GDK_PIXBUF_MODULE_FILE
  to the one from librsvg, so that SVG was supported in addition to the
  formats supported by gdk-pixbuf. However if both were enabled a configuration
  conflict would result (despite setting to the same value).

While this sort of worked (ignoring the conflict which perhaps could be hacked
around), it is unscalable and a hack, as there would be a real problem when one
wanted to add a third package that supports additional image formats.

A new NixOS module (gdk-pixbuf) is added with a configuration option
(modulePackages) that other modules use to request specific packages to be
included in the loaders cache. When any package is present in the list, the
module generates a system-wide loaders cache which includes the requested
packages (and always gdk-pixbuf itself), and sets the environment variable
GDK_PIXBUF_MODULE_FILE to point to the generated cache file.

The plasma5 and xfce modules are updated to add librsvg to modulePackages
instead of setting GDK_PIXBUF_MODULE_FILE.

Note that many packages create wrappers that set GDK_PIXBUF_MODULE_FILE,
some directly to the one from librsvg. Therefore this change does not
change the existing hack in the librsvg package which ensures that
file is generated. This change aims only to solve the conflict in the
global environent variable configuration.
2018-06-25 16:23:45 +02:00
..
desktop-managers Use a NixOS module for generating the gdk-pixbuf loaders cache. 2018-06-25 16:23:45 +02:00
display-managers lightdm-mini-greeter: init at 0.3.2 2018-06-18 18:55:06 +09:00
hardware libinput: disableWhileTyping = false by default 2017-12-30 22:02:16 +00:00
window-managers nixos/awesome: Add noArgb option 2018-06-13 19:47:26 +02:00
colord.nix
compton.nix compton: adding missing xr_glx_hybrid backend 2017-11-28 14:02:48 +01:00
fractalart.nix fractalart service: init, Generate wallpapers (#23231) 2017-11-13 19:56:08 +01:00
gdk-pixbuf.nix Use a NixOS module for generating the gdk-pixbuf loaders cache. 2018-06-25 16:23:45 +02:00
redshift.nix redshift: allow using geoclue2 loation provider 2017-10-21 22:34:14 +01:00
terminal-server.nix nixos: update default cases from KDM/KDE4 to SDDM/KDE5 2017-02-09 21:52:00 -05:00
unclutter-xfixes.nix nixos/xsession: use graphical systemd user target 2017-05-29 15:05:28 +02:00
unclutter.nix nixos/xsession: use graphical systemd user target 2017-05-29 15:05:28 +02:00
urxvtd.nix nixos/xsession: use graphical systemd user target 2017-05-29 15:05:28 +02:00
xautolock.nix nixos/xautolock: fix default defaults/examples, add assertions 2018-01-31 21:43:23 +01:00
xbanish.nix nixos/xsession: use graphical systemd user target 2017-05-29 15:05:28 +02:00
xfs.conf
xfs.nix
xserver.nix nixos: xserver: add related packages 2018-06-13 16:25:10 +00:00