From 100efeeafe85741a5d4531da12fcb63e4e0ca5d0 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 30 Mar 2007 12:33:42 +0000 Subject: [PATCH] * Specify the location of XKeyboard related stuff. svn path=/nixos/trunk/; revision=8501 --- system/upstart.nix | 2 +- upstart-jobs/xserver.nix | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/system/upstart.nix b/system/upstart.nix index d835b794762..798df5b065b 100644 --- a/system/upstart.nix +++ b/system/upstart.nix @@ -134,7 +134,7 @@ import ../upstart-jobs/gather.nix { (import ../upstart-jobs/xserver.nix { inherit config; inherit (pkgs) stdenv writeText lib xterm slim xorg mesa - gnome compiz feh kdebase kdelibs; + gnome compiz feh kdebase kdelibs xkeyboard_config; fontDirectories = import ./fonts.nix {inherit pkgs;}; }) diff --git a/upstart-jobs/xserver.nix b/upstart-jobs/xserver.nix index a69db80a44c..f016035f463 100644 --- a/upstart-jobs/xserver.nix +++ b/upstart-jobs/xserver.nix @@ -1,6 +1,7 @@ { stdenv, writeText, lib, xorg, mesa, xterm, slim, gnome , compiz, feh , kdelibs, kdebase +, xkeyboard_config , config @@ -86,6 +87,12 @@ let source /etc/profile exec > $HOME/.Xerrors 2>&1 + + + # Load X defaults. + if test -e ~/.Xdefaults; then + ${xorg.xrdb}/bin/xrdb -merge ~/.Xdefaults + fi ### Start a window manager. @@ -171,6 +178,7 @@ let "-logfile" "/var/log/X.${toString display}.log" "-config ${configFile}" ":${toString display}" "vt${toString tty}" + "-xkbdir" "${xkeyboard_config}/etc/X11/xkb" ]; @@ -192,6 +200,8 @@ rec { extraPath = [ xorg.xrandr + xorg.xrdb + xorg.setxkbmap feh ] ++ optional (windowManager == "twm") [ @@ -232,6 +242,7 @@ rec { env SLIM_CFGFILE=${slimConfig} env FONTCONFIG_FILE=/etc/fonts/fonts.conf # !!! cleanup + env XKB_BINDIR=${xorg.xkbcomp}/bin # Needed for the Xkb extension. ${if getCfg "driSupport" then "env XORG_DRI_DRIVER_PATH=${mesa}/lib/modules/dri"