From 636dabcf806e97b9eea3b999f594e4ca6cfe4c7e Mon Sep 17 00:00:00 2001 From: Louis Bettens Date: Fri, 20 Dec 2019 22:52:53 +0100 Subject: [PATCH] nixos/xserver: set $XKB_CONFIG_ROOT --- nixos/modules/services/x11/extra-layouts.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nixos/modules/services/x11/extra-layouts.nix b/nixos/modules/services/x11/extra-layouts.nix index 1af98a1318bb..b06bed7c09ce 100644 --- a/nixos/modules/services/x11/extra-layouts.nix +++ b/nixos/modules/services/x11/extra-layouts.nix @@ -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;