mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
feat: add justfile options for nixos-generate
This commit is contained in:
parent
4ebecb8087
commit
f6226b2605
1 changed files with 6 additions and 0 deletions
6
justfile
6
justfile
|
|
@ -14,8 +14,14 @@ iso:
|
||||||
rm -rf result
|
rm -rf result
|
||||||
nix build .#nixosConfigurations.iso.config.system.build.isoImage && ln -sf result/iso/*.iso latest.iso
|
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}}
|
||||||
|
|
||||||
iso-install DRIVE: iso
|
iso-install DRIVE: iso
|
||||||
sudo dd if=$(eza --sort changed result/iso/*.iso | tail -n1) of={{DRIVE}} bs=4M status=progress oflag=sync
|
sudo dd if=$(eza --sort changed result/iso/*.iso | tail -n1) of={{DRIVE}} bs=4M status=progress oflag=sync
|
||||||
|
|
||||||
|
dd DRIVE ISO:
|
||||||
|
sudo dd if=$(eza --sort changed {{ISO}} | tail -n1) of={{DRIVE}} bs=4M status=progress oflag=sync
|
||||||
|
|
||||||
sync USER HOST:
|
sync USER HOST:
|
||||||
rsync -av --filter=':- .gitignore' -e "ssh -l {{USER}}" . {{USER}}@{{HOST}}:.dotfiles/
|
rsync -av --filter=':- .gitignore' -e "ssh -l {{USER}}" . {{USER}}@{{HOST}}:.dotfiles/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue