nixos/libinput: load configuration file

In order for libinput to be used with Xorg, its configuration file
needs to be added to environment similarly to how evdev one’s is.

Closes: #31670
This commit is contained in:
Jan Tojnar 2017-11-24 00:25:54 +01:00
parent d6d96c3274
commit ed9dc1f187
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -198,6 +198,13 @@ in {
environment.systemPackages = [ pkgs.xorg.xf86inputlibinput ];
environment.etc = [
(let cfgPath = "X11/xorg.conf.d/40-libinput.conf"; in {
source = pkgs.xorg.xf86inputlibinput.out + "/share/" + cfgPath;
target = cfgPath;
})
];
services.udev.packages = [ pkgs.libinput ];
services.xserver.config =