1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-06 16:57:08 +00:00
nix-darwin/modules/system/defaults/GlobalPreferences.nix

33 lines
933 B
Nix
Raw Normal View History

{ config, lib, ... }:
with lib;
2022-03-31 11:03:41 -04:00
let
2023-12-27 11:30:04 +08:00
inherit (config.lib.defaults.types) floatWithDeprecationError;
2022-03-31 11:03:41 -04:00
in {
options = {
system.defaults.".GlobalPreferences"."com.apple.sound.beep.sound" =
mkOption {
type = types.nullOr (types.path);
default = null;
description = lib.mdDoc ''
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.
'';
};
2022-03-31 11:03:41 -04:00
system.defaults.".GlobalPreferences"."com.apple.mouse.scaling" =
mkOption {
2023-12-27 11:30:04 +08:00
type = types.nullOr floatWithDeprecationError;
2022-03-31 11:03:41 -04:00
default = null;
example = -1.0;
description = lib.mdDoc ''
2022-03-31 11:03:41 -04:00
Sets the mouse tracking speed. Found in the "Mouse" section of
"System Preferences". Set to -1.0 to disable mouse acceleration.
2022-03-31 11:03:41 -04:00
'';
};
};
}