xf86-input-synaptics: make use of 50-synaptics.conf

The default synaptics functionality (without this file) is limited for
clickpads: the right soft button area in the bottom right isn't active by
default, so the entire pad generates left-clicks. There is no way to
right-drag.

This file defines soft button areas and provides some matching rules.
These settings don't conflict with the synaptics options that NixOS
provides.

Changed files
+7 -2
nixos
modules
services
x11
hardware
+7 -2
nixos/modules/services/x11/hardware/synaptics.nix
···
Option "TapButton2" "0"
Option "TapButton3" "0"
'';
in {
options = {
···
config = mkIf cfg.enable {
-
services.xserver.modules = [ pkgs.xorg.xf86inputsynaptics ];
-
environment.systemPackages = [ pkgs.xorg.xf86inputsynaptics ];
services.xserver.config =
''
···
Option "TapButton2" "0"
Option "TapButton3" "0"
'';
+
pkg = pkgs.xorg.xf86inputsynaptics;
+
etcFile = "X11/xorg.conf.d/50-synaptics.conf";
in {
options = {
···
config = mkIf cfg.enable {
+
services.xserver.modules = [ pkg ];
+
+
environment.etc."${etcFile}".source =
+
"${pkg}/share/X11/xorg.conf.d/50-synaptics.conf";
+
environment.systemPackages = [ pkg ];
services.xserver.config =
''