From f2fae020ed607b704aa985dd9324cc6157639972 Mon Sep 17 00:00:00 2001 From: DuskyElf Date: Sun, 2 Aug 2026 00:46:20 +0530 Subject: [PATCH] fix(home): flake auto-update timer tracks awake time not midnight --- home.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/home.nix b/home.nix index 18d3f8c..0598788 100644 --- a/home.nix +++ b/home.nix @@ -85,8 +85,12 @@ PartOf = [ "graphical-session.target" ]; }; Timer = { - OnCalendar = "daily"; - Persistent = true; + # Monotonic, not calendar: suspend pauses the monotonic clock, so this + # runs 15min after boot then every 12h of awake use, not at midnight + # when the laptop is asleep. Persistent= would only help at boot anyway. + OnBootSec = "15min"; + OnUnitActiveSec = "12h"; + RandomizedDelaySec = "30min"; }; Install.WantedBy = [ "timers.target" ]; }; -- 2.51.2