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:
2026-01-28 19:44:25 -08:00
parent 0d13dd022a
commit 4c6ff0bd10

View File

@@ -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;