chore: add justfile

This commit is contained in:
2026-02-20 19:53:06 +01:00
parent 5289cb0054
commit 7484a106e7

26
justfile Normal file
View File

@@ -0,0 +1,26 @@
[private]
default:
@just --list
# rebuild and switch
switch:
nixos-rebuild switch --flake . --sudo
# fetch flake inputs
sync:
nix flake prefetch-inputs
# update flake inputs
update:
nix flake update
# update flake inputs, rebuild and switch
bump: update switch
# build installation iso
iso:
nix build .#live-iso
# garbage collect old generations
clean:
sudo nix-collect-garbage $(nix eval --raw -f ./nix.nix nix.gc.options)