Adds Justfile

This commit is contained in:
Dennis Schoepf 2024-12-25 19:50:42 +01:00
parent 24e1cf0cbd
commit 0327c48b91
3 changed files with 36 additions and 0 deletions

25
Justfile Normal file
View file

@ -0,0 +1,25 @@
deploy:
nixos-rebuild switch --flake .
debug:
nixos-rebuild switch --flake . --show-trace --verbose
up:
nix flake update
# Update specific input
# usage: make upi i=home-manager
upi:
nix flake update $(i)
history:
nix profile history --profile /nix/var/nix/profiles/system
repl:
nix repl -f flake:nixpkgs
clean:
sudo nix profile wipe-history --profile /nix/var/nix/profiles/system --older-than 7d
gc:
sudo nix-collect-garbage --delete-old