1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-28 18:57:08 +00:00

Merge pull request #132 from ben-z/add-defaults-configs

Add defaults configs
This commit is contained in:
Daiderd Jordan 2019-03-22 20:52:34 +01:00 committed by GitHub
commit 2430e72100
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 58 additions and 0 deletions

View file

@ -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.
'';
};
};
}

View file

@ -29,5 +29,31 @@ with lib;
'';
};
system.defaults.trackpad.ActuationStrength = mkOption {
type = types.nullOr (types.enum [ 0 1 ]);
default = null;
description = ''
0 to enable Silent Clicking, 1 to disable. The default is 1.
'';
};
system.defaults.trackpad.FirstClickThreshold = mkOption {
type = types.nullOr (types.enum [ 0 1 2 ]);
default = null;
description = ''
For normal click: 0 for light clicking, 1 for medium, 2 for firm.
The default is 1.
'';
};
system.defaults.trackpad.SecondClickThreshold = mkOption {
type = types.nullOr (types.enum [ 0 1 2 ]);
default = null;
description = ''
For force touch: 0 for light clicking, 1 for medium, 2 for firm.
The default is 1.
'';
};
};
}