diff options
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. + ''; }; }; |
