nixpkgs-suyu/modules/services/x11/hardware/multitouch.nix
Shea Levy 9464c99ce2 First attempt at a multitouch touchpad module.
Note that the Multitouch X Driver currently has no configuration beyond editing the source code, so the only option is enable or disable

svn path=/nixos/trunk/; revision=28373
2011-08-08 01:34:36 +00:00

37 lines
662 B
Nix

{ config, pkgs, ... }:
with pkgs.lib;
{
options = {
services.xserver.multitouch = {
enable = mkOption {
default = false;
example = true;
description = "Whether to enable multitouch touchpad support.";
};
};
};
config = mkIf config.services.xserver.multitouch.enable {
services.xserver.modules = [ pkgs.xorg.xf86_input_multitouch ];
services.xserver.config =
''
# Automatically enable the multitouch driver
Section "InputClass"
MatchIsTouchpad "true"
Identifier "Multitouch Touchpad"
Driver "multitouch"
EndSection
'';
};
}