1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/.dotfiles synced 2025-01-30 22:53:37 +00:00
.dotfiles/Justfile

28 lines
559 B
Makefile
Raw Normal View History

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