Skip to content

Commit

Permalink
Revert "Make services.xserver.xkbDir conflict free when overriden."
Browse files Browse the repository at this point in the history
This reverts commit 82bcfef.

cc @nbp

Fixes #22290, #22352.

Signed-off-by: Franz Pletz <fpletz@fnordicwalking.de>
  • Loading branch information
fadenb authored and fpletz committed Feb 1, 2017
1 parent 29844c6 commit 24f3abd
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ in

security.setuidPrograms = [ "e_freqset" ];

services.xserver.exportConfiguration = true;
environment.etc = singleton
{ source = "${pkgs.xkeyboard_config}/etc/X11/xkb";
target = "X11/xkb";
};

fonts.fonts = [ pkgs.dejavu_fonts pkgs.ubuntu_font_family ];

Expand Down
5 changes: 4 additions & 1 deletion nixos/modules/services/x11/desktop-managers/kde4.nix
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,10 @@ in
GST_PLUGIN_SYSTEM_PATH = [ "/lib/gstreamer-0.10" ];
};

services.xserver.exportConfiguration = true;
environment.etc = singleton
{ source = "${pkgs.xkeyboard_config}/etc/X11/xkb";
target = "X11/xkb";
};

# Enable helpful DBus services.
services.udisks2.enable = true;
Expand Down
5 changes: 4 additions & 1 deletion nixos/modules/services/x11/desktop-managers/kde5.nix
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,10 @@ in

environment.pathsToLink = [ "/share" ];

services.xserver.exportConfiguration = true;
environment.etc = singleton {
source = "${pkgs.xkeyboard_config}/etc/X11/xkb";
target = "X11/xkb";
};

environment.variables =
{
Expand Down
24 changes: 16 additions & 8 deletions nixos/modules/services/x11/xserver.nix
Original file line number Diff line number Diff line change
Expand Up @@ -465,15 +465,23 @@ in
}
];

environment.etc = mkMerge [
(mkIf cfg.exportConfiguration {
"X11/xorg.conf".source = configFile;
"X11/xkb".source = cfg.xkbDir;
})
environment.etc =
(optionals cfg.exportConfiguration
[ { source = "${configFile}";
target = "X11/xorg.conf";
}
# -xkbdir command line option does not seems to be passed to xkbcomp.
{ source = "${cfg.xkbDir}";
target = "X11/xkb";
}
])
# Needed since 1.18; see https://bugs.freedesktop.org/show_bug.cgi?id=89023#c5
(let cfgPath = "X11/xorg.conf.d/10-evdev.conf"; in
{ "${cfgPath}".source = xorg.xf86inputevdev.out + "/share" + cfgPath; })
];
++ (let cfgPath = "/X11/xorg.conf.d/10-evdev.conf"; in
[{
source = xorg.xf86inputevdev.out + "/share" + cfgPath;
target = cfgPath;
}]
);

environment.systemPackages =
[ xorg.xorgserver.out
Expand Down

0 comments on commit 24f3abd

Please sign in to comment.