Author: simons
Date: Tue Jan 10 18:40:02 2012
New Revision: 31469
URL: https://nixos.org/websvn/nix/?rev=31469&sc=1

Log:
synaptics: add 'additionalOptions' option

Modified:
   nixos/trunk/modules/services/x11/hardware/synaptics.nix

Modified: nixos/trunk/modules/services/x11/hardware/synaptics.nix
==============================================================================
--- nixos/trunk/modules/services/x11/hardware/synaptics.nix     Tue Jan 10 
16:12:11 2012        (r31468)
+++ nixos/trunk/modules/services/x11/hardware/synaptics.nix     Tue Jan 10 
18:40:02 2012        (r31469)
@@ -18,7 +18,7 @@
 
       dev = mkOption {
         default = null;
-       example = "/dev/input/event0";
+        example = "/dev/input/event0";
         description =
           ''
             Path for touchpad device.  Set to null to apply to any
@@ -46,6 +46,17 @@
         description = "Whether to enable vertical edge drag-scrolling.";
       };
 
+      additionalOptions = mkOption {
+        default = "";
+        example = ''
+          Option "RTCornerButton" "2"
+          Option "RBCornerButton" "3"
+               '';
+        description = ''
+          Additional options for synaptics touchpad driver.
+        '';
+      };
+
     };
 
   };
@@ -74,6 +85,7 @@
           Option "VertTwoFingerScroll" "${if cfg.twoFingerScroll then "1" else 
"0"}"
           Option "HorizTwoFingerScroll" "${if cfg.twoFingerScroll then "1" 
else "0"}"
           Option "VertEdgeScroll" "${if cfg.vertEdgeScroll then "1" else "0"}"
+          ${cfg.additionalOptions}
         EndSection
       '';
 
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to