Merge #486
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:
commit
e08836f51a
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:
|
def deploy(h: DeployHost) -> None:
|
||||||
target = f"{h.user or 'root'}@{h.host}"
|
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")
|
h.run("nixos-rebuild switch --option accept-flake-config true")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue