From 7468809e72366376db73b821c8f4439738a04c37 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Sun, 8 Sep 2019 14:57:52 +0200 Subject: [PATCH] nixos/doc: inform users of startx about `-xkbdir` argument needed --- nixos/doc/manual/configuration/x-windows.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nixos/doc/manual/configuration/x-windows.xml b/nixos/doc/manual/configuration/x-windows.xml index 7cdc5196e0d..f6f659b02af 100644 --- a/nixos/doc/manual/configuration/x-windows.xml +++ b/nixos/doc/manual/configuration/x-windows.xml @@ -279,6 +279,12 @@ xkb_symbols "media" = "setxkbmap -keycodes media"; + + If you are manually starting the X server, you should set the argument + -xkbdir /etc/X11/xkb, otherwise X won't find your layout files. + For example with xinit run + $ xinit -- -xkbdir /etc/X11/xkb + To learn how to write layouts take a look at the XKB