From a08546158dde0b9c4397f9ebb896e9ff695c18b8 Mon Sep 17 00:00:00 2001 From: Ben Zhang Date: Sat, 2 Mar 2019 21:41:24 -0800 Subject: [PATCH] add trackpad configs: ActuationStrength, FirstClickThreshold, SecondClickThreshold --- modules/system/defaults/trackpad.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/modules/system/defaults/trackpad.nix b/modules/system/defaults/trackpad.nix index 1fb1c901..a86a3477 100644 --- a/modules/system/defaults/trackpad.nix +++ b/modules/system/defaults/trackpad.nix @@ -29,5 +29,31 @@ with lib; ''; }; + system.defaults.trackpad.ActuationStrength = mkOption { + type = types.nullOr (types.enum [ 0 1 ]); + default = null; + description = '' + 0 to enable Silent Clicking, 1 to disable. The default is 1. + ''; + }; + + system.defaults.trackpad.FirstClickThreshold = mkOption { + type = types.nullOr (types.enum [ 0 1 2 ]); + default = null; + description = '' + For normal click: 0 for light clicking, 1 for medium, 2 for firm. + The default is 1. + ''; + }; + + system.defaults.trackpad.SecondClickThreshold = mkOption { + type = types.nullOr (types.enum [ 0 1 2 ]); + default = null; + description = '' + For force touch: 0 for light clicking, 1 for medium, 2 for firm. + The default is 1. + ''; + }; + }; }