mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 18:41:34 +01:00
Add basic just command for remote installation
This commit is contained in:
parent
ced818dedb
commit
bd6cc74136
1 changed files with 8 additions and 0 deletions
8
justfile
8
justfile
|
|
@ -18,3 +18,11 @@ check:
|
||||||
|
|
||||||
dev shell='default':
|
dev shell='default':
|
||||||
nix develop .#{{ shell }} --command zsh
|
nix develop .#{{ shell }} --command zsh
|
||||||
|
|
||||||
|
install host:
|
||||||
|
ssh -o StrictHostKeyChecking=no root@installer 'disko --mode destroy,format,mount --yes-wipe-all-disks --flake github:SebastianStork/nixos-config#{{ host }}'
|
||||||
|
ssh -o StrictHostKeyChecking=no root@installer 'mkdir -p /mnt/etc/ssh'
|
||||||
|
scp -o StrictHostKeyChecking=no ~/.ssh/{{ host }} root@installer:/mnt/etc/ssh/ssh_host_ed25519_key
|
||||||
|
scp -o StrictHostKeyChecking=no ~/.ssh/{{ host }}.pub root@installer:/mnt/etc/ssh/ssh_host_ed25519_key.pub
|
||||||
|
ssh -o StrictHostKeyChecking=no root@installer 'nixos-install --flake github:SebastianStork/nixos-config#{{ host }}'
|
||||||
|
ssh -o StrictHostKeyChecking=no root@installer 'reboot'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue