28 lines
553 B
Makefile
28 lines
553 B
Makefile
_default:
|
|
@just --list --unsorted
|
|
|
|
|
|
check-git:
|
|
# git must be clean
|
|
test -z "$(git status --porcelain)"
|
|
|
|
|
|
[linux]
|
|
build *args: check-git
|
|
sudo nixos-rebuild build --flake . {{args}} |& nom
|
|
nvd diff /run/current-system ./result
|
|
|
|
[linux]
|
|
switch *args: check-git
|
|
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
|