build(just): add clean step
This commit is contained in:
parent
720658399b
commit
5cc25e742a
1 changed files with 14 additions and 0 deletions
14
.justfile
14
.justfile
|
@ -45,5 +45,19 @@ switch *args:
|
||||||
@just build {{args}}
|
@just build {{args}}
|
||||||
@gum confirm && just rebuild switch {{args}}
|
@gum confirm && just rebuild switch {{args}}
|
||||||
|
|
||||||
|
[private]
|
||||||
|
gc:
|
||||||
|
nix-collect-garbage -d
|
||||||
|
nix-store --optimise
|
||||||
|
|
||||||
|
[macos]
|
||||||
|
clean:
|
||||||
|
sudo nix-env --profile /nix/var/nix/profiles/system --delete-generations old
|
||||||
|
@just gc
|
||||||
|
|
||||||
|
[linux]
|
||||||
|
clean:
|
||||||
|
@just gc
|
||||||
|
|
||||||
fetch:
|
fetch:
|
||||||
@nix shell nixpkgs\#onefetch nixpkgs\#scc -c sh -c "onefetch --true-color never --no-bots -d lines-of-code && scc --no-cocomo ."
|
@nix shell nixpkgs\#onefetch nixpkgs\#scc -c sh -c "onefetch --true-color never --no-bots -d lines-of-code && scc --no-cocomo ."
|
||||||
|
|
Loading…
Reference in a new issue