Refactor install-anywhere script

This commit is contained in:
SebastianStork 2025-09-08 18:18:48 +02:00
parent 225574cbbf
commit 93eb233b14
3 changed files with 30 additions and 22 deletions

View file

@ -20,8 +20,7 @@ deploy +hosts:
deploy --skip-checks --targets $(echo {{ hosts }} | sed 's/[^ ]*/\.#&/g')
install host destination='root@installer':
nix run .#provision-keys -- {{ host }}
nix run github:nix-community/nixos-anywhere -- --extra-files /tmp/anywhere/{{ host }} --flake .#{{ host }} --target-host {{ destination }}
nix run .#install-anywhere -- {{ host }} {{ destination }}
repair:
nix-store --verify --check-contents --repair