1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/.dotfiles synced 2025-03-03 19:32:09 +00:00
.dotfiles/Justfile

24 lines
476 B
Makefile
Raw Normal View History

2024-12-17 18:30:38 -05:00
default:
@just --list
rebuild host operation:
@cd nixos/ && sudo nixos-rebuild {{operation}} --flake .#{{host}} && cd ..
switch host:
@just rebuild {{host}} switch
clean:
sudo nix-env --profile /nix/var/nix/profiles/system --delete-generations old
nix-collect-garbage -d
nix store optimise
2024-12-17 18:31:43 -05:00
# commit local changes and push to upstream
2024-12-17 18:30:38 -05:00
push:
@git add .
2024-12-17 18:31:43 -05:00
git commit -m "~"
2024-12-17 18:30:38 -05:00
git push
# run `switch` on default host
sd:
@just switch qemu