summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2021-09-14 18:53:17 +0200
committerGitHub <noreply@github.com>2021-09-14 18:53:17 +0200
commitf3c3b8db6e9f6d2d8107cbb6915f7b4f9944efff (patch)
treedc457fd413e86311402ff04bd911af1a14bb6f83 /modules/system
parent39af16ede5296b8d4ec448ddd85256b4af0032ac (diff)
parent7a3f541d5ce055af6ff8ec23bb26fa47c4f0c5f3 (diff)
Merge pull request #351 from nosewings/master
system.defaults: enable automatic light/dark mode
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/defaults/NSGlobalDomain.nix8
1 files changed, 8 insertions, 0 deletions
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;