add justfile

This commit is contained in:
Osman Faruk Bayram 2024-12-02 10:07:53 +03:00
parent 9a74c3167f
commit b7a926cfa9

23
justfile Normal file
View 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