From 56c57b7cb7d09afbb948a0a38f7d75d1c0c0d712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= <joerg@thalheim.io> Date: Sat, 18 Mar 2023 17:00:02 +0100 Subject: [PATCH] tasks.py: fix rsync ignoring some file changes in the nix store timestamps are not correct. --- tasks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks.py b/tasks.py index c00665f..8f1b4f4 100644 --- a/tasks.py +++ b/tasks.py @@ -29,7 +29,9 @@ def deploy_nixos(hosts: List[DeployHost]) -> None: def deploy(h: DeployHost) -> None: target = f"{h.user or 'root'}@{h.host}" - h.run_local(f"rsync -vaF --delete -e ssh {path}/ {target}:/etc/nixos") + h.run_local( + f"rsync --checksum -vaF --delete -e ssh {path}/ {target}:/etc/nixos" + ) h.run("nixos-rebuild switch --option accept-flake-config true")