summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSlim Lim <slim@sarahlim.com>2022-02-02 14:38:55 -0800
committerSlim Lim <slim@sarahlim.com>2022-12-13 15:42:25 -0800
commit6774344719a51d2bfb3a9132d3faec2d86a66286 (patch)
tree66c1ad56b7bbb4fc8c6559a745f16dc54e64db8d /tests
parent6349b99bc2b96ded34d068a88c7c5ced406b7f7f (diff)
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/system-defaults-write.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/system-defaults-write.nix b/tests/system-defaults-write.nix
index 3aaa05c..344c440 100644
--- a/tests/system-defaults-write.nix
+++ b/tests/system-defaults-write.nix
@@ -5,6 +5,7 @@
system.defaults.NSGlobalDomain.AppleEnableMouseSwipeNavigateWithScrolls = false;
system.defaults.NSGlobalDomain.AppleEnableSwipeNavigateWithScrolls = false;
system.defaults.NSGlobalDomain.AppleFontSmoothing = 1;
+ system.defaults.NSGlobalDomain.AppleICUForce24HourTime = true;
system.defaults.NSGlobalDomain.AppleKeyboardUIMode = 3;
system.defaults.NSGlobalDomain.ApplePressAndHoldEnabled = true;
system.defaults.NSGlobalDomain.AppleShowAllExtensions = true;
@@ -67,6 +68,7 @@
grep "defaults write -g 'AppleEnableMouseSwipeNavigateWithScrolls' -bool NO" ${config.out}/activate-user
grep "defaults write -g 'AppleEnableSwipeNavigateWithScrolls' -bool NO" ${config.out}/activate-user
grep "defaults write -g 'AppleFontSmoothing' -int 1" ${config.out}/activate-user
+ grep "defaults write -g 'AppleICUForce24HourTime' -bool YES" ${config.out}/activate-user
grep "defaults write -g 'AppleKeyboardUIMode' -int 3" ${config.out}/activate-user
grep "defaults write -g 'ApplePressAndHoldEnabled' -bool YES" ${config.out}/activate-user
grep "defaults write -g 'AppleShowAllExtensions' -bool YES" ${config.out}/activate-user