mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
Fix install script
This commit is contained in:
parent
cd88ad1ac0
commit
08bfa67cc4
1 changed files with 6 additions and 2 deletions
8
justfile
8
justfile
|
|
@ -20,7 +20,11 @@ dev shell='default':
|
||||||
nix develop .#{{ shell }} --command zsh
|
nix develop .#{{ shell }} --command zsh
|
||||||
|
|
||||||
install host:
|
install host:
|
||||||
ssh -o StrictHostKeyChecking=no root@installer 'disko --mode destroy,format,mount --yes-wipe-all-disks --flake github:SebastianStork/nixos-config/61083d4359d379981d4bd838998820199c5d8bb9#{{ host }} && mkdir -p /mnt/etc/ssh'
|
ssh -o StrictHostKeyChecking=no root@installer ' \
|
||||||
|
git clone https://github.com/SebastianStork/nixos-config.git /tmp/nixos-config && \
|
||||||
|
disko --mode destroy,format,mount --yes-wipe-all-disks /tmp/nixos-config/hosts/{{ host }}/disko.nix && \
|
||||||
|
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 }} 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
|
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/61083d4359d379981d4bd838998820199c5d8bb9#{{ host }} && reboot'
|
ssh -o StrictHostKeyChecking=no root@installer 'nixos-install --flake github:SebastianStork/nixos-config#{{ host }} && reboot'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue