summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorJason Felice <jason.m.felice@gmail.com>2020-08-28 16:09:47 -0400
committerJason Felice <jason.m.felice@gmail.com>2020-08-28 16:09:47 -0400
commite038c503163221651c80ed01c82e4d5df2f04dfe (patch)
tree90bd94ce8b0b4a496e3749c52acf27bdcbe15c82 /modules
parent943a6b25d7be58e45df9817139db2cb3808d3006 (diff)
Enable setting dark mode
This option does not take effect until the user logs out and then back in. I didn't call this out because I think there are several options like this already. I'm not sure Mac OS sets "Auto", but it isn't by setting this default.
Diffstat (limited to 'modules')
-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 80be2b6..3cb04f2 100644
--- a/modules/system/defaults/NSGlobalDomain.nix
+++ b/modules/system/defaults/NSGlobalDomain.nix
@@ -23,6 +23,14 @@ in {
'';
};
+ system.defaults.NSGlobalDomain.AppleInterfaceStyle = mkOption {
+ type = types.nullOr (types.enum [ "Dark" ]);
+ default = null;
+ description = ''
+ Set to 'Dark' to enable dark mode, or leave unset for normal mod.
+ '';
+ };
+
system.defaults.NSGlobalDomain.AppleKeyboardUIMode = mkOption {
type = types.nullOr (types.enum [ 3 ]);
default = null;