summaryrefslogtreecommitdiff
path: root/modules/system/defaults/GlobalPreferences.nix
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2019-08-19 16:02:59 +0200
committertoonn <toonn@toonn.io>2019-08-19 16:02:59 +0200
commit88d27c62d5b754f30abd73cb3aff7287c6d753ad (patch)
tree47e5a5720372311afaafde57a2040add1e120445 /modules/system/defaults/GlobalPreferences.nix
parentef3d6e4354d029c7ef6f614654e48e9656e077f8 (diff)
Add defaults write for the alert sound
Found in `System Preferences`->`Sound`->`Sound Effects`, the default is `Funk`.
Diffstat (limited to 'modules/system/defaults/GlobalPreferences.nix')
-rw-r--r--modules/system/defaults/GlobalPreferences.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/system/defaults/GlobalPreferences.nix b/modules/system/defaults/GlobalPreferences.nix
new file mode 100644
index 0000000..935a8f2
--- /dev/null
+++ b/modules/system/defaults/GlobalPreferences.nix
@@ -0,0 +1,20 @@
+{ config, lib, ... }:
+
+with lib;
+
+{
+ 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.
+ '';
+ };
+
+ };
+}