NixOS-Config/justfile

24 lines
435 B
Makefile
Raw 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 add *
read -p "Commit message: " -r message && git commit -m "$message"
git push