From efcc20c73043bcea229173143ab3a37756374481 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Fri, 24 Apr 2026 01:15:40 -0700 Subject: [PATCH] fix(nixos): avoid tzupdate catch-up at boot --- nixos/base.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/base.nix b/nixos/base.nix index b27420c4..b1fec458 100644 --- a/nixos/base.nix +++ b/nixos/base.nix @@ -71,9 +71,12 @@ makeEnable config "myModules.base" true { # 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). + # NetworkManager-wait-online.service to avoid boot hangs). Also disable + # timer persistence so a missed hourly tick does not trigger an immediate + # catch-up run at boot before networking has settled. services.tzupdate.enable = true; systemd.services.tzupdate.wantedBy = pkgs.lib.mkForce []; + systemd.timers.tzupdate.timerConfig.Persistent = pkgs.lib.mkForce false; # TODO: Add a comment explaining what this does. services.locate.enable = true;