nixpkgs/modules/services/x11/hardware/multitouch.nix
Peter Simons eb6e1310b8 strip trailing whitespace; no functional change
svn path=/nixos/trunk/; revision=29285
2011-09-14 18:20:50 +00:00

38 lines
656 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.xf86_input_multitouch ];
services.xserver.config =
''
# Automatically enable the multitouch driver
Section "InputClass"
MatchIsTouchpad "true"
Identifier "Multitouch Touchpad"
Driver "multitouch"
EndSection
'';
};
}