summary refs log tree commit diff
path: root/nixos/modules/services/backup
diff options
context:
space:
mode:
authorThiago Kenji Okada <thiagokokada@gmail.com>2022-08-09 18:39:42 +0100
committerGitHub <noreply@github.com>2022-08-09 18:39:42 +0100
commit35348fcc07374b93826ec106ccb4350bd5a66fbb (patch)
treed9b19bdef50c1d4f5aecb3eafb5d6d7983c5cb0e /nixos/modules/services/backup
parent2f69e982ace00128c0641c368aee171cb56fb13e (diff)
parent7e8e00d656a145a8c72aae94c7d244f25e8f3594 (diff)
Merge pull request #182831 from otavio/topic/use-postStop-for-restic
nixos/restic: use postStop for `backupCleanupCommand`
Diffstat (limited to 'nixos/modules/services/backup')
-rw-r--r--nixos/modules/services/backup/restic.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/backup/restic.nix b/nixos/modules/services/backup/restic.nix
index 56958bf949d6f..2b0dcb16344c8 100644
--- a/nixos/modules/services/backup/restic.nix
+++ b/nixos/modules/services/backup/restic.nix
@@ -321,7 +321,7 @@ in
               ''}
             '';
           } // optionalAttrs (backup.dynamicFilesFrom != null || backup.backupCleanupCommand != null) {
-            postStart = ''
+            postStop = ''
               ${optionalString (backup.backupCleanupCommand != null) ''
                 ${pkgs.writeScript "backupCleanupCommand" backup.backupCleanupCommand}
               ''}