mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 16:21:34 +01:00
Add remote-deploy just command
This commit is contained in:
parent
261efa46c8
commit
f36a33506c
1 changed files with 3 additions and 0 deletions
3
justfile
3
justfile
|
|
@ -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 }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue