summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2016-12-14 15:01:32 +0100
committerDaiderd Jordan <daiderd@gmail.com>2016-12-14 15:01:32 +0100
commite6e79e53ccd927641086fddce83796ad4c079743 (patch)
treede5e7acd03256adada0207f26785349495a40084 /modules/system
parent3025f6a42aac80ff2b56dff3ab4b78a3614ad7c3 (diff)
add some more options for system.defaults
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/defaults/NSGlobalDomain.nix80
1 files changed, 80 insertions, 0 deletions
diff --git a/modules/system/defaults/NSGlobalDomain.nix b/modules/system/defaults/NSGlobalDomain.nix
index 15a5017..2209422 100644
--- a/modules/system/defaults/NSGlobalDomain.nix
+++ b/modules/system/defaults/NSGlobalDomain.nix
@@ -5,6 +5,22 @@ with lib;
{
options = {
+ system.defaults.NSGlobalDomain.AppleKeyboardUIMode = mkOption {
+ type = types.nullOr (types.enum [ 3 ]);
+ default = null;
+ description = ''
+ Configures the keyboard control behavior. Mode 3 enables full keyboard control.
+ '';
+ };
+
+ system.defaults.NSGlobalDomain.ApplePressAndHoldEnabled = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ Whether to enable the press-and-hold feature. The default is true.
+ '';
+ };
+
system.defaults.NSGlobalDomain.InitialKeyRepeat = mkOption {
type = types.nullOr types.int;
default = null;
@@ -29,5 +45,69 @@ with lib;
'';
};
+ system.defaults.NSGlobalDomain.NSAutomaticQuoteSubstitutionEnabled = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ Whether to enable smart quote substitution. The default is true.
+ '';
+ };
+
+ system.defaults.NSGlobalDomain.NSAutomaticDashSubstitutionEnabled = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ Whether to enable smart dash substitution. The default is true.
+ '';
+ };
+
+ system.defaults.NSGlobalDomain.NSAutomaticSpellingCorrectionEnabled = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ Whether to enable automatic spelling correction. The default is true.
+ '';
+ };
+
+ system.defaults.NSGlobalDomain.NSDocumentSaveNewDocumentsToCloud = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ Whether to save new documents to iCloud by default. The default is true.
+ '';
+ };
+
+ system.defaults.NSGlobalDomain.NSNavPanelExpandedStateForSaveMode = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ Whether to use expanded save panel by default. The default is false.
+ '';
+ };
+
+ system.defaults.NSGlobalDomain.NSNavPanelExpandedStateForSaveMode2 = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ Whether to use expanded save panel by default. The default is false.
+ '';
+ };
+
+ system.defaults.NSGlobalDomain."com.apple.swipescrolldirection" = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ Whether to enable "Natural" scrolling direction. The default is true.
+ '';
+ };
+
+ system.defaults.NSGlobalDomain."com.apple.mouse.tapBehavior" = mkOption {
+ type = types.nullOr (types.enum [ 1 ]);
+ default = null;
+ description = ''
+ Configures the trackpad tap behavior. Mode 1 enables tap to click.
+ '';
+ };
+
};
}