tasks.py: fix rsync ignoring some file changes
in the nix store timestamps are not correct.
This commit is contained in:
parent
6922403954
commit
56c57b7cb7
1 changed files with 3 additions and 1 deletions
4
tasks.py
4
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")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue