From dd743c70ee510e146c325f63329c3d9a83b9348b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 5 Jul 2024 20:08:10 +0200 Subject: [PATCH] nixos/locate: persist updatedb timer --- nixos/modules/misc/locate.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/modules/misc/locate.nix b/nixos/modules/misc/locate.nix index 0e9adefff5e1..4692ed15a956 100644 --- a/nixos/modules/misc/locate.nix +++ b/nixos/modules/misc/locate.nix @@ -297,7 +297,10 @@ in description = "Update timer for locate database"; partOf = [ "update-locatedb.service" ]; wantedBy = [ "timers.target" ]; - timerConfig.OnCalendar = cfg.interval; + timerConfig = { + OnCalendar = cfg.interval; + Persistent = true; + }; }; };