Fix tzupdate service failing at boot
The service was failing because network-online.target is reached before network is actually online (NetworkManager-wait-online is disabled to avoid boot hangs). Remove the service from multi-user.target.wants and let only the timer trigger it, which already has a 30s startup delay. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -65,8 +65,13 @@ makeEnable config "myModules.base" true {
|
|||||||
defaultLocale = "en_US.UTF-8";
|
defaultLocale = "en_US.UTF-8";
|
||||||
};
|
};
|
||||||
|
|
||||||
# # Update timezone automatically
|
# Update timezone automatically
|
||||||
|
# The tzupdate.timer handles triggering with OnStartupSec=30s delay.
|
||||||
|
# We disable the service's direct WantedBy since network-online.target
|
||||||
|
# is reached before network is actually online (because we disable
|
||||||
|
# NetworkManager-wait-online.service to avoid boot hangs).
|
||||||
services.tzupdate.enable = true;
|
services.tzupdate.enable = true;
|
||||||
|
systemd.services.tzupdate.wantedBy = pkgs.lib.mkForce [];
|
||||||
|
|
||||||
# TODO: Add a comment explaining what this does.
|
# TODO: Add a comment explaining what this does.
|
||||||
services.locate.enable = true;
|
services.locate.enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user