From 6774344719a51d2bfb3a9132d3faec2d86a66286 Mon Sep 17 00:00:00 2001 From: Slim Lim Date: Wed, 2 Feb 2022 14:38:55 -0800 Subject: Add option to set 24-hour time Normally, the system region setting determines whether the clock uses 12- or 24-hour time. This flag allows users to override this setting and use 24-hour time even if their region does not. --- 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 49a2a86..0224b70 100644 --- a/modules/system/defaults/NSGlobalDomain.nix +++ b/modules/system/defaults/NSGlobalDomain.nix @@ -363,6 +363,14 @@ in { ''; }; + system.defaults.NSGlobalDomain.AppleICUForce24HourTime = mkOption { + type = types.nullOr types.bool; + default = null; + description = '' + Whether to use 24-hour or 12-hour time. The default is based on region settings. + ''; + }; + system.defaults.NSGlobalDomain._HIHideMenuBar = mkOption { type = types.nullOr types.bool; default = null; -- cgit v1.2.3