git.iko.soy/typeable/nixpkgs
on master help sign in
Revert "Make services.xserver.xkbDir conflict free when overriden."

This reverts commit 82bcfef109ecf58ac1503e4cab15ae53dd524f4b. cc @nbp Fixes #22290, #22352. Signed-off-by: Franz Pletz <fpletz@fnordicwalking.de>

commit24f3abdafbf0a4840d63baa91e60ba34fad00d4d authorTristan Helmich <tristan.helmich@gmail.com> dateMon 30 Jan 2017, 14:03 (10 years ago) parent29844c6
4 files changed+28−11
nixos/modules/services/x11/desktop-managers/enlightenment.nix+4−1 nixos/modules/services/x11/desktop-managers/kde4.nix+4−1 nixos/modules/services/x11/desktop-managers/kde5.nix+4−1 nixos/modules/services/x11/xserver.nix+16−8
nixos/modules/services/x11/desktop-managers/enlightenment.nix+4−1
@@ -64,7 +64,10 @@ in
6464
6565 security.setuidPrograms = [ "e_freqset" ];
6666
67− services.xserver.exportConfiguration = true;
67+ environment.etc = singleton
68+ { source = "${pkgs.xkeyboard_config}/etc/X11/xkb";
69+ target = "X11/xkb";
70+ };
6871
6972 fonts.fonts = [ pkgs.dejavu_fonts pkgs.ubuntu_font_family ];
7073
nixos/modules/services/x11/desktop-managers/kde4.nix+4−1
@@ -183,7 +183,10 @@ in
183183 GST_PLUGIN_SYSTEM_PATH = [ "/lib/gstreamer-0.10" ];
184184 };
185185
186− services.xserver.exportConfiguration = true;
186+ environment.etc = singleton
187+ { source = "${pkgs.xkeyboard_config}/etc/X11/xkb";
188+ target = "X11/xkb";
189+ };
187190
188191 # Enable helpful DBus services.
189192 services.udisks2.enable = true;
nixos/modules/services/x11/desktop-managers/kde5.nix+4−1
@@ -199,7 +199,10 @@ in
199199
200200 environment.pathsToLink = [ "/share" ];
201201
202− services.xserver.exportConfiguration = true;
202+ environment.etc = singleton {
203+ source = "${pkgs.xkeyboard_config}/etc/X11/xkb";
204+ target = "X11/xkb";
205+ };
203206
204207 environment.variables =
205208 {
nixos/modules/services/x11/xserver.nix+16−8
@@ -465,15 +465,23 @@ in
465465 }
466466 ];
467467
468− environment.etc = mkMerge [
469− (mkIf cfg.exportConfiguration {
470− "X11/xorg.conf".source = configFile;
471− "X11/xkb".source = cfg.xkbDir;
472− })
468+ environment.etc =
469+ (optionals cfg.exportConfiguration
470+ [ { source = "${configFile}";
471+ target = "X11/xorg.conf";
472+ }
473+ # -xkbdir command line option does not seems to be passed to xkbcomp.
474+ { source = "${cfg.xkbDir}";
475+ target = "X11/xkb";
476+ }
477+ ])
473478 # Needed since 1.18; see https://bugs.freedesktop.org/show_bug.cgi?id=89023#c5
474− (let cfgPath = "X11/xorg.conf.d/10-evdev.conf"; in
475− { "${cfgPath}".source = xorg.xf86inputevdev.out + "/share" + cfgPath; })
476− ];
479+ ++ (let cfgPath = "/X11/xorg.conf.d/10-evdev.conf"; in
480+ [{
481+ source = xorg.xf86inputevdev.out + "/share" + cfgPath;
482+ target = cfgPath;
483+ }]
484+ );
477485
478486 environment.systemPackages =
479487 [ xorg.xorgserver.out