nixpkgs/nixos/modules/config
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
..
fonts fontconfig: Only read versioned config dirs 2020-07-11 17:05:13 +02:00
gtk gtk-icon-cache: get native gtk3 for icon cache 2020-03-06 00:45:48 -05:00
krb5 treewide: remove redundant quotes 2019-08-26 21:40:19 +00:00
xdg nixos: add freedesktop/gnome/myself maintainers 2020-04-01 20:53:09 -04:00
appstream.nix nixos: add AppStream module 2018-12-04 20:26:25 +00:00
console.nix nixos/console: set colors using kernel parameters 2019-12-20 00:27:35 +01:00
debug-info.nix Set $NIX_DEBUG_INFO_DIRS when environment.enableDebugInfo is enabled 2017-10-10 12:04:57 +02:00
gnu.nix treewide: isArm -> isAarch32 2018-04-25 15:28:55 -04:00
i18n.nix nixos i18n.supportedLocales: increase systemPackages priority 2020-06-11 10:22:20 +02:00
iproute2.nix alternative for iproute module (#41801) 2018-09-01 20:28:23 +02:00
ldap.nix nixos/ldap: move nss database configuration into ldap module 2020-05-11 16:14:50 +02:00
locale.nix timezone.nix -> locale.nix 2019-08-12 11:56:40 -04:00
malloc.nix treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
networking.nix nixos/networking: Add the FQDN and hostname to /etc/hosts 2020-05-25 14:06:25 +02:00
no-x-libs.nix pinentry: build with multiple outputs in single drv 2019-10-16 20:30:52 -04:00
nsswitch.nix nixos/nsswitch: improve error message 2020-05-11 16:14:51 +02:00
power-management.nix nixos/power-management: always run systemctl of the currently running systemd 2020-05-21 10:28:29 +02:00
pulseaudio.nix nixos/pulseaudio: Enable udev rules 2020-02-07 15:54:35 -06:00
qt5.nix nixos/qt5: support adwaita-dark theme 2020-04-05 08:38:08 +03:00
resolvconf.nix nixos/resolvconf: always run systemctl of the currently running systemd 2020-05-21 10:29:22 +02:00
shells-environment.nix nixos: default environment.homeBinInPath to false 2019-11-26 12:44:12 +01:00
swap.nix swap: depend on rngd if enabled and randomEncryption is configured to 2020-02-08 12:26:09 +01:00
sysctl.nix nixos/sysctl: reduce prio of "kernel.kptr_restrict" to mkDefault 2019-09-26 10:09:31 +01:00
system-environment.nix nixos/system-environment: prepend wrapperDir to PATH (#70430) 2019-10-15 13:17:38 +02:00
system-path.nix Merge pull request #85947 from prusnak/images-zstd 2020-06-07 19:09:43 +02:00
terminfo.nix nixos/terminfo: use profileRelativeSessionVariables 2019-09-18 11:13:42 -04:00
unix-odbc-drivers.nix Fix documentation typo 2019-10-09 19:43:12 +09:00
update-users-groups.pl nixos/users: Increase maximum system uid/gid from 499 to 999 2019-10-14 01:59:19 +02:00
users-groups.nix nixos: fix manual build 2020-07-04 10:23:25 +01:00
vte.nix nixos: add freedesktop/gnome/myself maintainers 2020-04-01 20:53:09 -04:00
zram.nix nixos/zram: make zstd the default (#87917) 2020-05-21 21:30:03 +03:00