summary refs log tree commit diff
path: root/nixos/modules/services/x11/hardware
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2017-11-24 00:25:54 +0100
committerJan Tojnar <jtojnar@gmail.com>2017-11-24 02:18:38 +0100
commited9dc1f18780621ad5d5498b9cd7caa5c71787b1 (patch)
tree65c7bdd4e2b157ef79d24d6929ea13923b648043 /nixos/modules/services/x11/hardware
parentd6d96c3274a1b0dac6fa56f382719168f9a188af (diff)
downloadnixpkgs-ed9dc1f18780621ad5d5498b9cd7caa5c71787b1.tar
nixpkgs-ed9dc1f18780621ad5d5498b9cd7caa5c71787b1.tar.gz
nixpkgs-ed9dc1f18780621ad5d5498b9cd7caa5c71787b1.tar.bz2
nixpkgs-ed9dc1f18780621ad5d5498b9cd7caa5c71787b1.tar.lz
nixpkgs-ed9dc1f18780621ad5d5498b9cd7caa5c71787b1.tar.xz
nixpkgs-ed9dc1f18780621ad5d5498b9cd7caa5c71787b1.tar.zst
nixpkgs-ed9dc1f18780621ad5d5498b9cd7caa5c71787b1.zip
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
Diffstat (limited to 'nixos/modules/services/x11/hardware')
-rw-r--r--nixos/modules/services/x11/hardware/libinput.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/hardware/libinput.nix b/nixos/modules/services/x11/hardware/libinput.nix
index 44555cb6e2a..5aecdef812e 100644
--- a/nixos/modules/services/x11/hardware/libinput.nix
+++ b/nixos/modules/services/x11/hardware/libinput.nix
@@ -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 =