From 4c6ff0bd10a80361d72844f02b1bbd8a83e55324 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 28 Jan 2026 19:44:25 -0800 Subject: [PATCH] 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 --- nixos/base.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nixos/base.nix b/nixos/base.nix index 8b86d6f8..ac92278c 100644 --- a/nixos/base.nix +++ b/nixos/base.nix @@ -65,8 +65,13 @@ makeEnable config "myModules.base" true { 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; + systemd.services.tzupdate.wantedBy = pkgs.lib.mkForce []; # TODO: Add a comment explaining what this does. services.locate.enable = true;