summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorBen Zhang <benzhangniu@gmail.com>2019-03-02 21:41:50 -0800
committerBen Zhang <benzhangniu@gmail.com>2019-03-02 21:51:13 -0800
commitf17fb87faba0a0f6b291ac5ecc19372a1d8720b5 (patch)
treeb1bfbc6dd435ab44113de7ca8117a36436d17466 /modules/system
parenta08546158dde0b9c4397f9ebb896e9ff695c18b8 (diff)
Add NSGlobalDomain configs
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/defaults/NSGlobalDomain.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/modules/system/defaults/NSGlobalDomain.nix b/modules/system/defaults/NSGlobalDomain.nix
index 984adf6..28fe60a 100644
--- a/modules/system/defaults/NSGlobalDomain.nix
+++ b/modules/system/defaults/NSGlobalDomain.nix
@@ -232,6 +232,14 @@ in {
'';
};
+ system.defaults.NSGlobalDomain."com.apple.trackpad.scaling" = mkOption {
+ type = types.nullOr float;
+ default = null;
+ description = ''
+ Configures the trackpad tracking speed (0 to 3). The default is "1".
+ '';
+ };
+
system.defaults.NSGlobalDomain."com.apple.springing.enabled" = mkOption {
type = types.nullOr types.bool;
default = null;
@@ -257,6 +265,30 @@ in {
'';
};
+ system.defaults.NSGlobalDomain.AppleMeasurementUnits = mkOption {
+ type = types.nullOr (types.enum [ "Centimeters" "Inches" ]);
+ default = null;
+ description = ''
+ 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;
+ description = ''
+ 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;
+ description = ''
+ Whether to use Celsius or Fahrenheit. The default is based on region settings.
+ '';
+ };
+
};
}