diff options
| author | Daiderd Jordan <daiderd@gmail.com> | 2016-12-14 16:38:59 +0100 |
|---|---|---|
| committer | Daiderd Jordan <daiderd@gmail.com> | 2016-12-14 16:38:59 +0100 |
| commit | 8a654cf2d988f381ea03ff932f635fb7676092e6 (patch) | |
| tree | 7e446a5a448262eef5cf7475087ac63ae3983d5b /modules/system | |
| parent | 8b3cf21d878208538f42cff70c969499d5a5c1e6 (diff) | |
add trackpad options for system.defaults
Diffstat (limited to 'modules/system')
| -rw-r--r-- | modules/system/defaults/NSGlobalDomain.nix | 16 | ||||
| -rw-r--r-- | modules/system/defaults/trackpad.nix | 11 |
2 files changed, 27 insertions, 0 deletions
diff --git a/modules/system/defaults/NSGlobalDomain.nix b/modules/system/defaults/NSGlobalDomain.nix index 2209422..0e8d064 100644 --- a/modules/system/defaults/NSGlobalDomain.nix +++ b/modules/system/defaults/NSGlobalDomain.nix @@ -93,6 +93,14 @@ with lib; ''; }; + system.defaults.NSGlobalDomain."com.apple.trackpad.enableSecondaryClick" = mkOption { + type = types.nullOr types.bool; + default = null; + description = '' + Whether to enable trackpad secondary click. The default is true. + ''; + }; + system.defaults.NSGlobalDomain."com.apple.swipescrolldirection" = mkOption { type = types.nullOr types.bool; default = null; @@ -109,5 +117,13 @@ with lib; ''; }; + system.defaults.NSGlobalDomain."com.apple.trackpad.trackpadCornerClickBehavior" = mkOption { + type = types.nullOr (types.enum [ 1 ]); + default = null; + description = '' + Configures the trackpad corner click behavior. Mode 1 enables right click. + ''; + }; + }; } diff --git a/modules/system/defaults/trackpad.nix b/modules/system/defaults/trackpad.nix index 6736ce1..c093ae2 100644 --- a/modules/system/defaults/trackpad.nix +++ b/modules/system/defaults/trackpad.nix @@ -8,6 +8,17 @@ with lib; system.defaults.trackpad.Clicking = mkOption { type = types.nullOr types.bool; default = null; + description = '' + Whether to enable trackpad tap to click. The default is false. + ''; + }; + + system.defaults.trackpad.TrackpadRightClick = mkOption { + type = types.nullOr types.bool; + default = null; + description = '' + Whether to enable trackpad right click. The default is false. + ''; }; }; |
