486: tasks.py: fix rsync ignoring some file changes r=zowoq a=Mic92



Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
This commit is contained in:
bors[bot] 2023-03-18 23:37:52 +00:00 committed by GitHub
commit e08836f51a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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")