modules/darwin/common: set timezone
This commit is contained in:
parent
f26d290066
commit
cbbece4fc3
1 changed files with 5 additions and 3 deletions
|
@ -45,8 +45,10 @@
|
||||||
PasswordAuthentication no
|
PasswordAuthentication no
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# works but displays error message during activation
|
# `time.timeZone` works but displays error message during activation
|
||||||
# https://github.com/LnL7/nix-darwin/issues/359
|
# https://github.com/LnL7/nix-darwin/issues/359
|
||||||
# sudo systemsetup -settimezone 'GMT'
|
# https://github.com/LnL7/nix-darwin/blob/16c07487ac9bc59f58b121d13160c67befa3342e/modules/time/default.nix#L14
|
||||||
#time.timeZone = "GMT";
|
system.activationScripts.postActivation.text = ''
|
||||||
|
systemsetup -settimezone "GMT" >/dev/null 2>&1
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue