nixos/xserver: export configuration with startx and extra layouts

If the X server is run manually it must be started with an `-xkbdir` argument
pointing to the custom xkb directory. So we export it to /etc/X11/xkb.
This commit is contained in:
rnhmjoj 2019-09-08 14:51:23 +02:00
parent 3b5b9a73f5
commit e57c0f3bf9
No known key found for this signature in database
GPG Key ID: BFBAF4C975F76450

View File

@ -158,7 +158,10 @@ in
});
services.xserver.xkbDir = "${pkgs.xkb_patched}/etc/X11/xkb";
services.xserver = {
xkbDir = "${pkgs.xkb_patched}/etc/X11/xkb";
exportConfiguration = config.services.xserver.displayManager.startx.enable;
};
};