mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-31 04:04:45 +00:00
add mouse scaling system setting
This commit is contained in:
parent
54a24f042f
commit
c82b2327e5
1 changed files with 20 additions and 1 deletions
|
@ -2,7 +2,17 @@
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
{
|
let
|
||||||
|
isFloat = x: isString x && builtins.match "^[+-]?([0-9]*[.])?[0-9]+$" x != null;
|
||||||
|
|
||||||
|
float = mkOptionType {
|
||||||
|
name = "float";
|
||||||
|
description = "float";
|
||||||
|
check = isFloat;
|
||||||
|
merge = options.mergeOneOption;
|
||||||
|
};
|
||||||
|
|
||||||
|
in {
|
||||||
options = {
|
options = {
|
||||||
|
|
||||||
system.defaults.".GlobalPreferences"."com.apple.sound.beep.sound" =
|
system.defaults.".GlobalPreferences"."com.apple.sound.beep.sound" =
|
||||||
|
@ -16,5 +26,14 @@ with lib;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
system.defaults.".GlobalPreferences"."com.apple.mouse.scaling" =
|
||||||
|
mkOption {
|
||||||
|
type = types.nullOr float;
|
||||||
|
default = null;
|
||||||
|
description = ''
|
||||||
|
Sets the mouse tracking speed. Found in the "Mouse" section of
|
||||||
|
"System Preferences". Set to -1 to disable mouse acceleration.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue