diff --git a/nixos/hosts/asxpio-services/replica.nix b/nixos/hosts/asxpio-services/replica.nix index 00cc4b2..9f42f98 100644 --- a/nixos/hosts/asxpio-services/replica.nix +++ b/nixos/hosts/asxpio-services/replica.nix @@ -54,6 +54,8 @@ in wants = [ "network-online.target" ]; after = [ "network-online.target" ]; onFailure = [ "alert-mail@%n.service" ]; + # A deploy that changes this unit must not kill a running replica + restartIfChanged = false; path = [ pkgs.rclone ]; # rclone looks for a home directory even when its remotes come from # the environment diff --git a/nixos/modules/backup.nix b/nixos/modules/backup.nix index 8eb05e2..044e78e 100644 --- a/nixos/modules/backup.nix +++ b/nixos/modules/backup.nix @@ -153,6 +153,8 @@ in wants = [ "network-online.target" ]; after = [ "network-online.target" ]; onFailure = [ "alert-mail@%n.service" ]; + # A deploy that changes this unit must not kill a running backup + restartIfChanged = false; serviceConfig = { Type = "oneshot"; ExecStart = "${script}/bin/restic-backup run";