nixos/Justfile
alydev 5ee696e854
Some checks failed
/ Check (push) Has been cancelled
update
2025-10-15 18:44:53 +10:00

43 lines
809 B
Makefile

up:
nix flake update
check:
nix flake check
boot:
nixos-rebuild boot --flake . --use-remote-sudo
commit:
git add .
-git pull origin main
-git commit -a -m "update"
_switch:
nixos-rebuild switch --flake . --use-remote-sudo
push:
git push origin main
switch: commit _switch push
debug:
nixos-rebuild switch --flake . --use-remote-sudo --show-trace --verbose
# Update specific input
# usage: make upp i=home-manager
upp:
nix flake update $(i)
history:
nix profile history --profile /nix/var/nix/profiles/system
repl:
nix repl -f flake:nixpkgs
clean:
# remove all generations older than 7 days
sudo nix profile wipe-history --profile /nix/var/nix/profiles/system --older-than 7d
gc:
# garbage collect all unused nix store entries
sudo nix-collect-garbage --delete-old