mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-31 04:04:45 +00:00
42 lines
1.3 KiB
Nix
42 lines
1.3 KiB
Nix
{ config, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
inherit (config.lib.defaults.types) floatWithDeprecationError;
|
|
in {
|
|
options = {
|
|
|
|
system.defaults.".GlobalPreferences"."com.apple.sound.beep.sound" =
|
|
mkOption {
|
|
type = types.nullOr (types.path);
|
|
default = null;
|
|
description = ''
|
|
Sets the system-wide alert sound. Found under "Sound Effects" in the
|
|
"Sound" section of "System Preferences". Look in
|
|
"/System/Library/Sounds" for possible candidates.
|
|
'';
|
|
};
|
|
|
|
system.defaults.".GlobalPreferences"."com.apple.mouse.scaling" =
|
|
mkOption {
|
|
type = types.nullOr floatWithDeprecationError;
|
|
default = null;
|
|
example = -1.0;
|
|
description = ''
|
|
Sets the mouse tracking speed. Found in the "Mouse" section of
|
|
"System Preferences". Set to -1.0 to disable mouse acceleration on versions of macOS before 14.0.
|
|
'';
|
|
};
|
|
|
|
system.defaults.".GlobalPreferences"."com.apple.mouse.linear" =
|
|
mkOption {
|
|
type = types.nullOr types.bool;
|
|
default = null;
|
|
description = ''
|
|
Sets whether the pointer precision is turned on or off. Found in the "Mouse" section of
|
|
"System Preferences" under the "Advanced" tab. Set to true to enable pointer precision.
|
|
'';
|
|
};
|
|
};
|
|
}
|