nixpkgs/nixos/modules
Jan Tojnar edf2541f02
fontconfig: Only read versioned config dirs
Falling back to unversioned `/etc/fonts/conf.d` when versioned one does not exist
is problematic since it only occurs on non-NixOS systems and those are likely
to have a different version of fontconfig. When those versions use incompatible
elements in the config, apps using fontconfig will crash.

Instead, we are now falling back to the in-package `fonts.conf` file that loads
both the versioned global `conf.d` directory and the in-package `conf.d` since using
upstream settings on non-NixOS is preferable to not being able to use apps there.

In fact, we would not even need to link `fonts.conf`, as the in-package `fonts.conf`
will be always used unless someone creates the global one manually (the option is still
retained if one wants to write a custom NixOS module and to avoid unnecessary stat call on NixOS).

Additionally, since the `fonts.conf` will always load `conf.d` from the package, we no longer
need to install them to sytem `/etc` in the module. This needed some mucking with `50-user.conf`
which disables configs in user directories (a good thing IMO, NixOS module will turn it back on)
but otherwise, it is cleaner. The files are still prioritized by their name, regardless of their location.

See https://github.com/NixOS/nixpkgs/pull/73795#issuecomment-634370125 for more information.
2020-07-11 17:05:13 +02:00
..
config fontconfig: Only read versioned config dirs 2020-07-11 17:05:13 +02:00
hardware hardware.deviceTree: add name 2020-06-21 13:48:22 +02:00
i18n/input-method Revert "ibus: fix dconf db installation" 2020-04-24 18:22:59 -04:00
installer Merge pull request #91195 from flokli/extlinux-conf-builder-dtbname 2020-06-23 18:07:31 +02:00
misc nixos/documentation: add option to generate caches 2020-06-18 10:17:04 +02:00
profiles Merge pull request #74378 from ttuegel/lxc-container 2020-04-25 16:25:15 +02:00
programs nixos/fish: enable man cache generation 2020-06-29 22:28:32 +02:00
security nixos/sudo: default rule should be first 2020-06-17 17:48:51 -07:00
services Merge pull request #92270 from samuelgrf/fix/whether-typo 2020-07-04 09:34:28 -04:00
system nixos/*: wether -> whether 2020-07-04 15:17:03 +02:00
tasks Merge pull request #92092 from ElvishJerricco/zfs-encryption-systemd-ask-password 2020-07-02 17:25:53 -04:00
testing nixos/service-runner.nix: Allow quotes in commands + test 2020-02-28 14:26:29 +01:00
virtualisation nixos/qemu-vm: Don't assume boot drive is always vdb 2020-07-04 14:40:42 +02:00
module-list.nix nixos/onedrive: init 2020-06-29 19:56:41 +05:30
rename.nix hardware/u2f: remove module 2020-06-14 15:13:31 +02:00