modules/darwin/common: set timeZone

This commit is contained in:
zowoq 2023-09-16 07:56:59 +10:00
parent cb3197e1ad
commit b74ef1be64

View file

@ -56,10 +56,5 @@
PasswordAuthentication no PasswordAuthentication no
''; '';
# `time.timeZone` works but displays error message during activation time.timeZone = "GMT";
# https://github.com/LnL7/nix-darwin/issues/359
# https://github.com/LnL7/nix-darwin/blob/16c07487ac9bc59f58b121d13160c67befa3342e/modules/time/default.nix#L14
system.activationScripts.postActivation.text = ''
systemsetup -settimezone "GMT" >/dev/null 2>&1
'';
} }