nixos/x11: set XKB_CONFIG_ROOT from config

The motivation is to make overriding `services.xserver.xkbDir` easier.
This commit is contained in:
Daniel Nagy 2023-03-28 20:00:00 +02:00
parent 49079a134f
commit e1a383102f
No known key found for this signature in database
GPG Key ID: 1B8E8DCB576FB671

View File

@ -121,7 +121,7 @@ in
environment.sessionVariables = {
# runtime override supported by multiple libraries e. g. libxkbcommon
# https://xkbcommon.org/doc/current/group__include-path.html
XKB_CONFIG_ROOT = "${xkb_patched}/etc/X11/xkb";
XKB_CONFIG_ROOT = config.services.xserver.xkbDir;
};
services.xserver = {