summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2016-12-14 16:38:59 +0100
committerDaiderd Jordan <daiderd@gmail.com>2016-12-14 16:38:59 +0100
commit8a654cf2d988f381ea03ff932f635fb7676092e6 (patch)
tree7e446a5a448262eef5cf7475087ac63ae3983d5b /modules
parent8b3cf21d878208538f42cff70c969499d5a5c1e6 (diff)
add trackpad options for system.defaults
Diffstat (limited to 'modules')
-rw-r--r--modules/examples/lnl.nix2
-rw-r--r--modules/system/defaults/NSGlobalDomain.nix16
-rw-r--r--modules/system/defaults/trackpad.nix11
3 files changed, 29 insertions, 0 deletions
diff --git a/modules/examples/lnl.nix b/modules/examples/lnl.nix
index e3e50e8..7239f2d 100644
--- a/modules/examples/lnl.nix
+++ b/modules/examples/lnl.nix
@@ -39,6 +39,8 @@
system.defaults.finder.QuitMenuItem = true;
system.defaults.finder.FXEnableExtensionChangeWarning = false;
+ system.defaults.trackpad.Clicking = true;
+
programs.tmux.enable = true;
programs.tmux.loginShell = "${config.programs.zsh.shell} -l";
programs.tmux.enableSensible = true;
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.
+ '';
};
};