nixpkgs-suyu/nixos/modules/services
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
..
admin nixos/oxidized: add module 2018-05-24 04:40:45 +02:00
amqp
audio mpd: fix spelling in description 2018-06-03 09:55:26 +02:00
backup Merge pull request #42133 from markuskowa/pgbackup 2018-06-20 22:21:52 +01:00
cluster/kubernetes add missing k8s Webhook authorization mode 2018-06-19 22:33:57 +02:00
computing nixos/slurm: remove propagatedBuidInputs from slurmWrapped 2018-06-02 14:01:24 +02:00
continuous-integration nixos/buildkite-agent: fix variable expansion in hook scripts 2018-04-27 12:17:40 +01:00
databases pgmanage: remove deprecated postage alias 2018-06-23 13:32:13 +02:00
desktops nixos/flatpak: add flatpak's XDG_DATA_DIRS to the environment 2018-05-22 02:26:21 +02:00
development
editors Merge pull request #39478 from pngwjpgh/infinoted 2018-05-01 10:22:25 -05:00
games ghostOne: remove 2017-12-29 02:18:35 +01:00
hardware Merge pull request #39137 from peterhoeg/m/lcd 2018-04-28 22:57:59 +00:00
logging nixos/journaldriver: add module for journaldriver log forwarder 2018-06-18 20:36:44 +02:00
mail opensmtpd module: allow changing the package 2018-06-18 09:49:01 +02:00
misc Merge pull request #41478 from bluescreen303/docker-registry 2018-06-20 21:45:56 -04:00
monitoring Merge pull request #40028 from WilliButz/add-dnsmasq-exporter 2018-06-01 23:18:49 -04:00
network-filesystems Merge pull request #40879 from seppeljordan/pr-ipfs-port-scanning 2018-05-24 10:53:49 +02:00
networking chrony: disable the whole timesyncd module when chronyd is enabled 2018-06-22 12:02:35 +02:00
printing nixos/cupsd: Introduce services.printing.logLevel option 2018-04-27 16:41:49 +00:00
scheduling nixos/modules/services/scheduling/fcron: add setuid to fcrontab 2018-05-06 11:24:09 -07:00
search elasticsearch6: fix startup due to missing jvm.options 2018-04-18 00:38:48 +02:00
security Merge pull request #41098 from mkaito/oauth2_proxy 2018-06-18 20:47:55 +03:00
system Add localtime package and nixos module 2017-12-03 11:42:51 +01:00
torrent Merge pull request #33679 from flokli/deluge-module 2018-04-25 14:54:34 -05:00
ttys nixos: rename config.system.nixos* -> config.system.nixos.* 2018-02-18 12:56:30 +00:00
web-apps Merge pull request #42306 from ryantm/mattermost 2018-06-20 20:52:04 +00:00
web-servers nixos/uwsgi: use python.withPackages 2018-06-13 22:47:22 -07:00
x11 Use a NixOS module for generating the gdk-pixbuf loaders cache. 2018-06-25 16:23:45 +02:00