Add script to provision keys

This commit is contained in:
SebastianStork 2025-09-07 23:02:49 +02:00
parent d71748e36a
commit 07635949e6
3 changed files with 53 additions and 2 deletions

View file

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