1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-28 02:37:09 +00:00

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.
This commit is contained in:
Jason Felice 2020-08-28 16:09:47 -04:00
parent 943a6b25d7
commit e038c50316

View file

@ -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;