6435207dd1
svn path=/nixos/trunk/; revision=33285
38 lines
636 B
Nix
38 lines
636 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_mtrack ];
|
|
|
|
services.xserver.config =
|
|
''
|
|
# Automatically enable the multitouch driver
|
|
Section "InputClass"
|
|
MatchIsTouchpad "on"
|
|
Identifier "Touchpads"
|
|
Driver "mtrack"
|
|
EndSection
|
|
'';
|
|
|
|
};
|
|
|
|
}
|