Adds Justfile
This commit is contained in:
parent
24e1cf0cbd
commit
0327c48b91
3 changed files with 36 additions and 0 deletions
25
Justfile
Normal file
25
Justfile
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue