rename just recipe
This commit is contained in:
parent
d9ee14b693
commit
040e77e45a
1 changed files with 3 additions and 2 deletions
5
justfile
5
justfile
|
|
@ -1,12 +1,10 @@
|
||||||
_default:
|
_default:
|
||||||
@just --list --unsorted
|
@just --list --unsorted
|
||||||
|
|
||||||
|
|
||||||
check-git:
|
check-git:
|
||||||
# git must be clean
|
# git must be clean
|
||||||
test -z "$(git status --porcelain)"
|
test -z "$(git status --porcelain)"
|
||||||
|
|
||||||
|
|
||||||
[linux]
|
[linux]
|
||||||
build *args: check-git
|
build *args: check-git
|
||||||
sudo nixos-rebuild build --flake . {{args}} |& nom
|
sudo nixos-rebuild build --flake . {{args}} |& nom
|
||||||
|
|
@ -23,6 +21,9 @@ check:
|
||||||
nix flake check
|
nix flake check
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
rm result
|
||||||
|
|
||||||
|
collect-garbage:
|
||||||
sudo nix-env --profile /nix/var/nix/profiles/system --delete-generations old
|
sudo nix-env --profile /nix/var/nix/profiles/system --delete-generations old
|
||||||
# home-manager expire-generations now
|
# home-manager expire-generations now
|
||||||
sudo nix-collect-garbage --delete-older-than 3d
|
sudo nix-collect-garbage --delete-older-than 3d
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue