NixOS-Config/justfile

25 lines
448 B
Makefile
Raw Permalink Normal View History

build:
sudo nixos-rebuild switch --flake .# --show-trace
run:
nix-repl -f flake:nixpkgs
test:
sudo nix flake check --show-trace
update:
nix flake update
2024-10-25 13:20:35 +02:00
clean:
sudo nix-collect-garbage
2024-10-25 13:23:48 +02:00
sudo nix-store --optimise
setup:
echo "just test" >> ./.git/hooks/pre-commit && chmod +x ./.git/hooks/pre-commit
push:
git pull
git add *
read -p "Commit message: " -r message && git commit -m "$message"
git push