From 255a56fbc5cc4c1426cc2049e71fb86a2d2707b9 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Wed, 4 Aug 2010 20:07:58 +0000 Subject: [PATCH] allow wildcard Synaptics configuration svn path=/nixos/trunk/; revision=22954 --- modules/services/x11/hardware/synaptics.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/services/x11/hardware/synaptics.nix b/modules/services/x11/hardware/synaptics.nix index ed1996eabd46..5f832ab7d224 100644 --- a/modules/services/x11/hardware/synaptics.nix +++ b/modules/services/x11/hardware/synaptics.nix @@ -18,7 +18,8 @@ let cfg = config.services.xserver.synaptics; in dev = mkOption { default = "/dev/input/event0"; - description = "Event device for Synaptics touchpad."; + example = null; + description = "Event device for Synaptics touchpad, null to omit specification."; }; minSpeed = mkOption { @@ -55,7 +56,7 @@ let cfg = config.services.xserver.synaptics; in Section "InputDevice" Identifier "Touchpad[0]" Driver "synaptics" - Option "Device" "${cfg.dev}" + ${if cfg.dev != null then ''Option "Device" "${cfg.dev}"'' else ""} Option "Protocol" "PS/2" Option "LeftEdge" "1700" Option "RightEdge" "5300"