add justfile
This commit is contained in:
parent
9a74c3167f
commit
b7a926cfa9
1 changed files with 23 additions and 0 deletions
23
justfile
Normal file
23
justfile
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
_default:
|
||||
@just --list --unsorted
|
||||
|
||||
|
||||
[linux]
|
||||
build *args:
|
||||
sudo nixos-rebuild build --flake . {{args}} |& nom
|
||||
nvd diff /run/current-system ./result
|
||||
|
||||
[linux]
|
||||
switch *args:
|
||||
sudo nixos-rebuild switch --flake . {{args}} |& nom
|
||||
|
||||
update:
|
||||
nix flake update
|
||||
|
||||
check:
|
||||
nix flake check
|
||||
|
||||
clean:
|
||||
sudo nix-env --profile /nix/var/nix/profiles/system --delete-generations old
|
||||
# home-manager expire-generations now
|
||||
sudo nix-collect-garbage --delete-older-than 3d
|
||||
Loading…
Add table
Add a link
Reference in a new issue