2016-12-14 13:05:23 +01:00
|
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
2018-01-04 11:59:50 +09:00
|
|
|
|
let
|
2022-08-29 15:39:16 -07:00
|
|
|
|
# Should only be used with options that previously used floats defined as strings.
|
|
|
|
|
inherit (config.lib.defaults.types) floatWithDeprecationError;
|
2018-01-04 11:59:50 +09:00
|
|
|
|
in {
|
2016-12-14 13:05:23 +01:00
|
|
|
|
options = {
|
2022-03-10 18:24:26 -08:00
|
|
|
|
system.defaults.NSGlobalDomain.AppleShowAllFiles = mkOption {
|
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2022-03-10 18:24:26 -08:00
|
|
|
|
Whether to always show hidden files. The default is false.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2020-11-14 22:51:54 -08:00
|
|
|
|
system.defaults.NSGlobalDomain.AppleEnableMouseSwipeNavigateWithScrolls = mkOption {
|
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2020-11-14 22:51:54 -08:00
|
|
|
|
Enables swiping left or right with two fingers to navigate backward or forward. The default is true.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
system.defaults.NSGlobalDomain.AppleEnableSwipeNavigateWithScrolls = mkOption {
|
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2020-11-14 22:51:54 -08:00
|
|
|
|
Enables swiping left or right with two fingers to navigate backward or forward. The default is true.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2018-01-04 11:59:50 +09:00
|
|
|
|
system.defaults.NSGlobalDomain.AppleFontSmoothing = mkOption {
|
|
|
|
|
type = types.nullOr (types.enum [ 0 1 2 ]);
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2018-01-04 11:59:50 +09:00
|
|
|
|
Sets the level of font smoothing (sub-pixel font rendering).
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2020-08-28 16:09:47 -04:00
|
|
|
|
system.defaults.NSGlobalDomain.AppleInterfaceStyle = mkOption {
|
|
|
|
|
type = types.nullOr (types.enum [ "Dark" ]);
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2021-10-21 20:36:55 +11:00
|
|
|
|
Set to 'Dark' to enable dark mode, or leave unset for normal mode.
|
2020-08-28 16:09:47 -04:00
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2021-08-06 18:43:03 -05:00
|
|
|
|
system.defaults.NSGlobalDomain.AppleInterfaceStyleSwitchesAutomatically = mkOption {
|
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2021-08-06 18:43:03 -05:00
|
|
|
|
Whether to automatically switch between light and dark mode. The default is false.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2016-12-14 15:01:32 +01:00
|
|
|
|
system.defaults.NSGlobalDomain.AppleKeyboardUIMode = mkOption {
|
|
|
|
|
type = types.nullOr (types.enum [ 3 ]);
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2016-12-14 15:01:32 +01:00
|
|
|
|
Configures the keyboard control behavior. Mode 3 enables full keyboard control.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
system.defaults.NSGlobalDomain.ApplePressAndHoldEnabled = mkOption {
|
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2016-12-14 15:01:32 +01:00
|
|
|
|
Whether to enable the press-and-hold feature. The default is true.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2018-01-04 11:59:50 +09:00
|
|
|
|
system.defaults.NSGlobalDomain.AppleShowAllExtensions = mkOption {
|
|
|
|
|
type = types.nullOr types.bool;
|
2016-12-14 13:05:23 +01:00
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2021-10-21 20:36:55 +11:00
|
|
|
|
Whether to show all file extensions in Finder. The default is false.
|
2016-12-14 13:30:46 +01:00
|
|
|
|
'';
|
2016-12-14 13:05:23 +01:00
|
|
|
|
};
|
|
|
|
|
|
2018-01-04 11:59:50 +09:00
|
|
|
|
system.defaults.NSGlobalDomain.AppleShowScrollBars = mkOption {
|
|
|
|
|
type = types.nullOr (types.enum [ "WhenScrolling" "Automatic" "Always" ]);
|
2016-12-14 13:05:23 +01:00
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2018-01-04 11:59:50 +09:00
|
|
|
|
When to show the scrollbars. Options are 'WhenScrolling', 'Automatic' and 'Always'.
|
2016-12-14 13:30:46 +01:00
|
|
|
|
'';
|
2016-12-14 13:05:23 +01:00
|
|
|
|
};
|
|
|
|
|
|
2023-05-27 01:02:23 +08:00
|
|
|
|
system.defaults.NSGlobalDomain.AppleScrollerPagingBehavior = mkOption {
|
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2023-05-27 01:02:23 +08:00
|
|
|
|
Jump to the spot that's clicked on the scroll bar. The default is false.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2024-09-04 23:03:14 +02:00
|
|
|
|
system.defaults.NSGlobalDomain.AppleSpacesSwitchOnActivate = mkOption {
|
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
|
default = null;
|
|
|
|
|
description = ''
|
|
|
|
|
Whether or not to switch to a workspace that has a window of the application open, that is switched to. The default is true.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2017-06-25 16:55:37 -04:00
|
|
|
|
system.defaults.NSGlobalDomain.NSAutomaticCapitalizationEnabled = mkOption {
|
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2017-06-25 16:55:37 -04:00
|
|
|
|
Whether to enable automatic capitalization. The default is true.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2024-06-08 10:10:29 -05:00
|
|
|
|
system.defaults.NSGlobalDomain.NSAutomaticInlinePredictionEnabled = mkOption {
|
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
|
default = null;
|
|
|
|
|
description = ''
|
|
|
|
|
Whether to enable inline predictive text. The default is true.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2018-01-04 11:59:50 +09:00
|
|
|
|
system.defaults.NSGlobalDomain.NSAutomaticDashSubstitutionEnabled = mkOption {
|
2016-12-14 15:01:32 +01:00
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2018-01-04 11:59:50 +09:00
|
|
|
|
Whether to enable smart dash substitution. The default is true.
|
2016-12-14 15:01:32 +01:00
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2018-01-04 11:59:50 +09:00
|
|
|
|
system.defaults.NSGlobalDomain.NSAutomaticPeriodSubstitutionEnabled = mkOption {
|
2016-12-14 15:01:32 +01:00
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2018-01-04 11:59:50 +09:00
|
|
|
|
Whether to enable smart period substitution. The default is true.
|
2016-12-14 15:01:32 +01:00
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2018-01-04 11:59:50 +09:00
|
|
|
|
system.defaults.NSGlobalDomain.NSAutomaticQuoteSubstitutionEnabled = mkOption {
|
2017-06-25 17:03:28 -04:00
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2018-01-04 11:59:50 +09:00
|
|
|
|
Whether to enable smart quote substitution. The default is true.
|
2017-06-25 17:03:28 -04:00
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2016-12-14 15:01:32 +01:00
|
|
|
|
system.defaults.NSGlobalDomain.NSAutomaticSpellingCorrectionEnabled = mkOption {
|
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2016-12-14 15:01:32 +01:00
|
|
|
|
Whether to enable automatic spelling correction. The default is true.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2022-01-24 20:06:13 -08:00
|
|
|
|
system.defaults.NSGlobalDomain.NSAutomaticWindowAnimationsEnabled = mkOption {
|
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2022-01-24 20:06:13 -08:00
|
|
|
|
Whether to animate opening and closing of windows and popovers. The default is true.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2018-01-04 11:59:50 +09:00
|
|
|
|
system.defaults.NSGlobalDomain.NSDisableAutomaticTermination = mkOption {
|
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2018-01-04 11:59:50 +09:00
|
|
|
|
Whether to disable the automatic termination of inactive apps.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2016-12-14 15:01:32 +01:00
|
|
|
|
system.defaults.NSGlobalDomain.NSDocumentSaveNewDocumentsToCloud = mkOption {
|
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2016-12-14 15:01:32 +01:00
|
|
|
|
Whether to save new documents to iCloud by default. The default is true.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2023-05-27 01:37:34 +08:00
|
|
|
|
system.defaults.NSGlobalDomain.AppleWindowTabbingMode = mkOption {
|
2023-05-27 01:42:42 +08:00
|
|
|
|
type = types.nullOr (types.enum [ "manual" "always" "fullscreen" ]);
|
2023-05-27 01:37:34 +08:00
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2023-05-27 01:37:34 +08:00
|
|
|
|
Sets the window tabbing when opening a new document: 'manual', 'always', or 'fullscreen'. The default is 'fullscreen'.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2016-12-14 15:01:32 +01:00
|
|
|
|
system.defaults.NSGlobalDomain.NSNavPanelExpandedStateForSaveMode = mkOption {
|
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2016-12-14 15:01:32 +01:00
|
|
|
|
Whether to use expanded save panel by default. The default is false.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
system.defaults.NSGlobalDomain.NSNavPanelExpandedStateForSaveMode2 = mkOption {
|
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2016-12-14 15:01:32 +01:00
|
|
|
|
Whether to use expanded save panel by default. The default is false.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2018-01-04 11:59:50 +09:00
|
|
|
|
system.defaults.NSGlobalDomain.NSTableViewDefaultSizeMode = mkOption {
|
|
|
|
|
type = types.nullOr (types.enum [ 1 2 3 ]);
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2018-01-04 11:59:50 +09:00
|
|
|
|
Sets the size of the finder sidebar icons: 1 (small), 2 (medium) or 3 (large). The default is 3.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
system.defaults.NSGlobalDomain.NSTextShowsControlCharacters = mkOption {
|
2016-12-14 16:38:59 +01:00
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2018-01-04 11:59:50 +09:00
|
|
|
|
Whether to display ASCII control characters using caret notation in standard text views. The default is false.
|
2016-12-14 16:38:59 +01:00
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2018-01-04 11:59:50 +09:00
|
|
|
|
system.defaults.NSGlobalDomain.NSUseAnimatedFocusRing = mkOption {
|
2016-12-14 15:01:32 +01:00
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2018-01-04 11:59:50 +09:00
|
|
|
|
Whether to enable the focus ring animation. The default is true.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
system.defaults.NSGlobalDomain.NSScrollAnimationEnabled = mkOption {
|
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2018-01-04 11:59:50 +09:00
|
|
|
|
Whether to enable smooth scrolling. The default is true.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
system.defaults.NSGlobalDomain.NSWindowResizeTime = mkOption {
|
2022-08-29 15:39:16 -07:00
|
|
|
|
type = types.nullOr floatWithDeprecationError;
|
2018-01-04 11:59:50 +09:00
|
|
|
|
default = null;
|
2022-08-29 15:39:16 -07:00
|
|
|
|
example = 0.20;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2018-01-04 11:59:50 +09:00
|
|
|
|
Sets the speed speed of window resizing. The default is given in the example.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2024-02-28 14:44:09 +01:00
|
|
|
|
system.defaults.NSGlobalDomain.NSWindowShouldDragOnGesture = mkOption {
|
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2024-02-28 14:44:09 +01:00
|
|
|
|
Whether to enable moving window by holding anywhere on it like on Linux. The default is false.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2018-01-04 11:59:50 +09:00
|
|
|
|
system.defaults.NSGlobalDomain.InitialKeyRepeat = mkOption {
|
|
|
|
|
type = types.nullOr types.int;
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2023-06-22 02:34:49 +01:00
|
|
|
|
Apple menu > System Preferences > Keyboard
|
|
|
|
|
|
2018-01-04 11:59:50 +09:00
|
|
|
|
If you press and hold certain keyboard keys when in a text area, the key’s character begins to repeat.
|
|
|
|
|
For example, the Delete key continues to remove text for as long as you hold it down.
|
|
|
|
|
|
|
|
|
|
This sets how long you must hold down the key before it starts repeating.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
system.defaults.NSGlobalDomain.KeyRepeat = mkOption {
|
|
|
|
|
type = types.nullOr types.int;
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2023-06-22 02:34:49 +01:00
|
|
|
|
Apple menu > System Preferences > Keyboard
|
|
|
|
|
|
2018-01-04 11:59:50 +09:00
|
|
|
|
If you press and hold certain keyboard keys when in a text area, the key’s character begins to repeat.
|
|
|
|
|
For example, the Delete key continues to remove text for as long as you hold it down.
|
|
|
|
|
|
|
|
|
|
This sets how fast it repeats once it starts.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
system.defaults.NSGlobalDomain.PMPrintingExpandedStateForPrint = mkOption {
|
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2018-01-04 11:59:50 +09:00
|
|
|
|
Whether to use the expanded print panel by default. The default is false.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
system.defaults.NSGlobalDomain.PMPrintingExpandedStateForPrint2 = mkOption {
|
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2018-01-04 11:59:50 +09:00
|
|
|
|
Whether to use the expanded print panel by default. The default is false.
|
2016-12-14 15:01:32 +01:00
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2019-07-22 11:05:48 -04:00
|
|
|
|
system.defaults.NSGlobalDomain."com.apple.keyboard.fnState" = mkOption {
|
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2019-07-22 11:05:48 -04:00
|
|
|
|
Use F1, F2, etc. keys as standard function keys.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2016-12-14 15:01:32 +01:00
|
|
|
|
system.defaults.NSGlobalDomain."com.apple.mouse.tapBehavior" = mkOption {
|
|
|
|
|
type = types.nullOr (types.enum [ 1 ]);
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2016-12-14 15:01:32 +01:00
|
|
|
|
Configures the trackpad tap behavior. Mode 1 enables tap to click.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2019-11-04 12:39:47 +10:00
|
|
|
|
system.defaults.NSGlobalDomain."com.apple.sound.beep.volume" = mkOption {
|
2022-08-29 15:39:16 -07:00
|
|
|
|
type = types.nullOr floatWithDeprecationError;
|
2019-11-04 12:39:47 +10:00
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2023-06-22 02:34:49 +01:00
|
|
|
|
Apple menu > System Preferences > Sound
|
|
|
|
|
|
2019-11-04 12:39:47 +10:00
|
|
|
|
Sets the beep/alert volume level from 0.000 (muted) to 1.000 (100% volume).
|
|
|
|
|
|
|
|
|
|
75% = 0.7788008
|
2022-08-29 15:39:16 -07:00
|
|
|
|
|
2019-11-04 12:39:47 +10:00
|
|
|
|
50% = 0.6065307
|
2022-08-29 15:39:16 -07:00
|
|
|
|
|
2019-11-04 12:39:47 +10:00
|
|
|
|
25% = 0.4723665
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2019-11-04 12:49:09 +10:00
|
|
|
|
system.defaults.NSGlobalDomain."com.apple.sound.beep.feedback" = mkOption {
|
|
|
|
|
type = types.nullOr types.int;
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2023-06-22 02:34:49 +01:00
|
|
|
|
Apple menu > System Preferences > Sound
|
|
|
|
|
|
2019-11-04 12:49:09 +10:00
|
|
|
|
Make a feedback sound when the system volume changed. This setting accepts
|
|
|
|
|
the integers 0 or 1. Defaults to 1.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2018-01-04 11:59:50 +09:00
|
|
|
|
system.defaults.NSGlobalDomain."com.apple.trackpad.enableSecondaryClick" = mkOption {
|
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2018-01-04 11:59:50 +09:00
|
|
|
|
Whether to enable trackpad secondary click. The default is true.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2016-12-14 16:38:59 +01:00
|
|
|
|
system.defaults.NSGlobalDomain."com.apple.trackpad.trackpadCornerClickBehavior" = mkOption {
|
|
|
|
|
type = types.nullOr (types.enum [ 1 ]);
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2016-12-14 16:38:59 +01:00
|
|
|
|
Configures the trackpad corner click behavior. Mode 1 enables right click.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2019-03-02 21:41:50 -08:00
|
|
|
|
system.defaults.NSGlobalDomain."com.apple.trackpad.scaling" = mkOption {
|
2022-08-29 15:39:16 -07:00
|
|
|
|
type = types.nullOr floatWithDeprecationError;
|
2019-03-02 21:41:50 -08:00
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2019-03-02 21:41:50 -08:00
|
|
|
|
Configures the trackpad tracking speed (0 to 3). The default is "1".
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2024-05-23 16:42:31 -03:00
|
|
|
|
system.defaults.NSGlobalDomain."com.apple.trackpad.forceClick" = mkOption {
|
2024-05-25 03:14:18 -03:00
|
|
|
|
type = types.nullOr types.bool;
|
2024-05-23 16:42:31 -03:00
|
|
|
|
default = null;
|
|
|
|
|
description = ''
|
2024-05-23 16:56:43 -03:00
|
|
|
|
Whether to enable trackpad force click.
|
2024-05-23 16:42:31 -03:00
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2018-01-04 11:59:50 +09:00
|
|
|
|
system.defaults.NSGlobalDomain."com.apple.springing.enabled" = mkOption {
|
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2018-01-04 11:59:50 +09:00
|
|
|
|
Whether to enable spring loading (expose) for directories.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
system.defaults.NSGlobalDomain."com.apple.springing.delay" = mkOption {
|
2022-08-29 15:39:16 -07:00
|
|
|
|
type = types.nullOr floatWithDeprecationError;
|
2018-01-04 11:59:50 +09:00
|
|
|
|
default = null;
|
2022-08-29 15:39:16 -07:00
|
|
|
|
example = 1.0;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2018-01-04 11:59:50 +09:00
|
|
|
|
Set the spring loading delay for directories. The default is given in the example.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
system.defaults.NSGlobalDomain."com.apple.swipescrolldirection" = mkOption {
|
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2018-01-04 11:59:50 +09:00
|
|
|
|
Whether to enable "Natural" scrolling direction. The default is true.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2019-03-02 21:41:50 -08:00
|
|
|
|
system.defaults.NSGlobalDomain.AppleMeasurementUnits = mkOption {
|
|
|
|
|
type = types.nullOr (types.enum [ "Centimeters" "Inches" ]);
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2019-03-02 21:41:50 -08:00
|
|
|
|
Whether to use centimeters (metric) or inches (US, UK) as the measurement unit. The default is based on region settings.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
system.defaults.NSGlobalDomain.AppleMetricUnits = mkOption {
|
|
|
|
|
type = types.nullOr (types.enum [ 0 1 ]);
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2019-03-02 21:41:50 -08:00
|
|
|
|
Whether to use the metric system. The default is based on region settings.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
system.defaults.NSGlobalDomain.AppleTemperatureUnit = mkOption {
|
|
|
|
|
type = types.nullOr (types.enum [ "Celsius" "Fahrenheit" ]);
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2019-03-02 21:41:50 -08:00
|
|
|
|
Whether to use Celsius or Fahrenheit. The default is based on region settings.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2022-02-02 14:38:55 -08:00
|
|
|
|
system.defaults.NSGlobalDomain.AppleICUForce24HourTime = mkOption {
|
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2022-02-02 14:38:55 -08:00
|
|
|
|
Whether to use 24-hour or 12-hour time. The default is based on region settings.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2020-01-01 20:51:31 +00:00
|
|
|
|
system.defaults.NSGlobalDomain._HIHideMenuBar = mkOption {
|
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
|
description = ''
|
2020-01-01 20:51:31 +00:00
|
|
|
|
Whether to autohide the menu bar. The default is false.
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2016-12-14 13:05:23 +01:00
|
|
|
|
};
|
2018-01-04 11:59:50 +09:00
|
|
|
|
|
2016-12-14 13:05:23 +01:00
|
|
|
|
}
|