nixos/xserver: set $XKB_CONFIG_ROOT

This commit is contained in:
Louis Bettens 2019-12-20 22:52:53 +01:00
parent b9d274b89d
commit 636dabcf80

View file

@ -158,6 +158,12 @@ in
});
environment.sessionVariables = {
# runtime override supported by multiple libraries e. g. libxkbcommon
# https://xkbcommon.org/doc/current/group__include-path.html
XKB_CONFIG_ROOT = "${pkgs.xkb_patched}/etc/X11/xkb";
};
services.xserver = {
xkbDir = "${pkgs.xkb_patched}/etc/X11/xkb";
exportConfiguration = config.services.xserver.displayManager.startx.enable;