24 lines
		
	
	
	
		
			448 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			448 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
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
 | 
						|
 | 
						|
clean:
 | 
						|
    sudo nix-collect-garbage
 | 
						|
    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
 |