nixpkgs/modules/services/x11/hardware/multitouch.nix
Shea Levy 843ccae5d5 multitouch: Use the right package name
svn path=/nixos/trunk/; revision=28375
2011-08-08 01:39:26 +00:00

38 lines
657 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
'';
};
}