From a58190c92d817a1babf611986008f00034afeed8 Mon Sep 17 00:00:00 2001 From: liberodark Date: Thu, 30 Oct 2025 10:19:15 +0100 Subject: [PATCH] nixos/restic: prevent start when rebuilding system --- nixos/modules/services/backup/restic.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/backup/restic.nix b/nixos/modules/services/backup/restic.nix index c95f7cb16713..b7d6424fe424 100644 --- a/nixos/modules/services/backup/restic.nix +++ b/nixos/modules/services/backup/restic.nix @@ -505,6 +505,7 @@ in lib.nameValuePair "restic-backups-${name}" { wantedBy = [ "timers.target" ]; inherit (backup) timerConfig; + unitConfig.X-OnlyManualStart = true; } ) (lib.filterAttrs (_: backup: backup.timerConfig != null) config.services.restic.backups);