From 7a3f541d5ce055af6ff8ec23bb26fa47c4f0c5f3 Mon Sep 17 00:00:00 2001 From: Nicholas Coltharp Date: Fri, 6 Aug 2021 18:43:03 -0500 Subject: system.defaults: enable automatic light/dark mode --- modules/system/defaults/NSGlobalDomain.nix | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'modules/system') diff --git a/modules/system/defaults/NSGlobalDomain.nix b/modules/system/defaults/NSGlobalDomain.nix index 6e3d4db..1115e0c 100644 --- a/modules/system/defaults/NSGlobalDomain.nix +++ b/modules/system/defaults/NSGlobalDomain.nix @@ -47,6 +47,14 @@ in { ''; }; + system.defaults.NSGlobalDomain.AppleInterfaceStyleSwitchesAutomatically = mkOption { + type = types.nullOr types.bool; + default = null; + description = '' + Whether to automatically switch between light and dark mode. The default is false. + ''; + }; + system.defaults.NSGlobalDomain.AppleKeyboardUIMode = mkOption { type = types.nullOr (types.enum [ 3 ]); default = null; -- cgit v1.2.3