tasks.py: fix rsync ignoring some file changes

in the nix store timestamps are not correct.
This commit is contained in:
Jörg Thalheim 2023-03-18 17:00:02 +01:00 committed by zowoq
parent 6922403954
commit 56c57b7cb7

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