1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-13 20:30:02 +00:00

Merge pull request #452 from psm14/mouse-scaling

add mouse scaling system setting
This commit is contained in:
Domen Kožar 2022-12-16 13:07:17 +00:00 committed by GitHub
commit adb8ac0453
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,17 @@
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 = {
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.
'';
};
};
}