-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tzupdate: timezone is not available on your operating system #127984
Comments
enable https://search.nixos.org/options?channel=unstable&show=services.tzupdate.enable&from=0&size=50&sort=relevance&query=tzupdate |
Thanks, I didn't know about the service. Honestly I think this is not a good user experience. |
sure but people would be confused about why it doesn't work and probably reports "permission denied" because they have
|
I marked this as stale due to inactivity. → More info |
To make it a bit more ergonomic, my config looks like environment.shellAliases.tzupdate = "systemctl start tzupdate";
services.tzupdate.enable = true; So running But I don’t know why environment.shellAliases.tzupdate = "timedatectl set-timezone $(${lib.getExe pkgs.tzupdate} --print-only)";
time.timeZone = null; (/cc @doronbehar) |
I also have a systemd timer: systemd.timers.tzupdate = {
timerConfig = {
OnStartupSec = "30s";
OnCalendar = "hourly";
Persistent = true;
};
wantedBy = [ "timers.target" ];
}; |
Ah, that is a great reason! It would be nice to have the timer as part of the module. E.g., |
I was thinking about it, but I thought I was the only one using this service, because it seems it was broken for a while and no body noticed (see #343748), so I wasn't sure I'll get approvals from others. Also, I'm not sure that there is enough meat for the module to wrap - the timer's configuration is pretty trivial once you have the Systemd service setup. I think I'll close this 3 years old issue, as the OP seem to got satisfied, and even you got convinced that the Systemd service's existence is justified. |
Without this fix, when setting `services.tzupdate.enable = true`, the service would never run automatically. Now, it's actually enabled in systemd and it actually gets executed. Still, it could be improved with a timer as explained in NixOS#127984 (comment), but this makes it at least work out of the box when rebooting the system.
Without this fix, when setting `services.tzupdate.enable = true`, the service would never run automatically. Now, it's actually enabled in systemd and it actually gets executed. Still, it could be improved with a timer as explained in NixOS#127984 (comment), but this makes it at least work out of the box when rebooting the system.
Without this fix, when setting `services.tzupdate.enable = true`, the service would never run automatically. Now, it's actually enabled in systemd and it actually gets executed. Still, it could be improved with a timer as explained in NixOS#127984 (comment), but this makes it at least work out of the box when rebooting the system.
Without this fix, when setting `services.tzupdate.enable = true`, the service would never run automatically. Now, it's actually enabled in systemd and it actually gets executed. Still, it could be improved with a timer as explained in NixOS#127984 (comment), but this makes it at least work out of the box when rebooting the system.
Without this fix, when setting `services.tzupdate.enable = true`, the service would never run automatically. Now, it's actually enabled in systemd and it actually gets executed. Still, it could be improved with a timer as explained in NixOS#127984 (comment), but this makes it at least work out of the box when rebooting the system.
Describe the bug
When I use tzupdate to update my time zone, it will always throws and error like this:
Notify maintainers
@michaelpj
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Maintainer information:
The text was updated successfully, but these errors were encountered: