mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 00:57:22 +01:00
fix: bootstrap script not working with nix-plugins
This commit is contained in:
parent
c3b8102546
commit
729defa8b1
5 changed files with 279 additions and 218 deletions
10
justfile
10
justfile
|
|
@ -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}}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue