mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 00:57:22 +01:00
30 lines
887 B
Makefile
30 lines
887 B
Makefile
default:
|
|
@just --list
|
|
|
|
check:
|
|
nix flake check --keep-going
|
|
|
|
check-trace:
|
|
nix flake check --show-trace
|
|
|
|
update:
|
|
nix flake update
|
|
|
|
iso CONFIG="live-iso":
|
|
rm -rf result
|
|
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
|
|
|
|
dd DRIVE ISO:
|
|
sudo dd if=$(eza --sort changed {{ISO}} | tail -n1) of={{DRIVE}} bs=4M status=progress oflag=sync
|
|
|
|
sync USER HOST:
|
|
rsync -rltv --filter=':- .gitignore' -e "ssh -l {{USER}}" . {{USER}}@{{HOST}}:.dotfiles/
|
|
|
|
secrets USER HOST:
|
|
rsync -rltv -e "ssh -l {{USER}}" /var/tmp/nix-import-encrypted/1000/ {{USER}}@{{HOST}}:/var/tmp/nix-import-encrypted/0
|
|
|
|
bootstrap DEST CONFIG ARCH="x86_64-linux" NODISKODEPS="":
|
|
nix develop .#deploy --command zsh -c "swarsel-bootstrap {{NODISKODEPS}} -n {{CONFIG}} -d {{DEST}} -a {{ARCH}}"
|