Add remote-deploy just command

This commit is contained in:
SebastianStork 2025-05-11 18:59:38 +02:00
parent 261efa46c8
commit f36a33506c

View file

@ -19,5 +19,8 @@ check:
dev shell='default': dev shell='default':
nix develop .#{{ shell }} --command zsh nix develop .#{{ shell }} --command zsh
deploy +hosts:
deploy --skip-checks --targets $(echo {{ hosts }} | sed 's/[^ ]*/\.#&/g')
install host destination='root@installer': install host destination='root@installer':
nix run github:nix-community/nixos-anywhere -- --extra-files ~/.ssh/{{ host }} --flake .#{{ host }} --target-host {{ destination }} nix run github:nix-community/nixos-anywhere -- --extra-files ~/.ssh/{{ host }} --flake .#{{ host }} --target-host {{ destination }}