fix: bootstrap script not working with nix-plugins

This commit is contained in:
Leon Schwarzäugl 2025-11-10 01:23:50 +01:00
parent a5a1afed3d
commit e1569ba472
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
5 changed files with 279 additions and 218 deletions

View file

@ -10,12 +10,9 @@ check-trace:
update:
nix flake update
iso:
iso CONFIG="live-iso":
rm -rf result
nix build .#nixosConfigurations.iso.config.system.build.isoImage && ln -sf result/iso/*.iso latest.iso
iso-flake FLAKE SYSTEM="x86_64" FORMAT="iso":
nixos-generate --flake .#{{FLAKE}} -f {{FORMAT}} --system {{SYSTEM}}
nix build --print-out-paths .#live-iso
iso-install DRIVE: iso
sudo dd if=$(eza --sort changed result/iso/*.iso | tail -n1) of={{DRIVE}} bs=4M status=progress oflag=sync
@ -25,3 +22,6 @@ dd DRIVE ISO:
sync USER HOST:
rsync -rltv --filter=':- .gitignore' -e "ssh -l {{USER}}" . {{USER}}@{{HOST}}:.dotfiles/
bootstrap DEST CONFIG ARCH="x86_64-linux":
nix develop .#deploy --command zsh -c "swarsel-bootstrap -n {{CONFIG}} -d {{DEST}} -a {{ARCH}}"