mirror of
				https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
				synced 2025-11-03 18:48:04 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			659 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			659 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
export GUM_FILTER_HEIGHT := "15"
 | 
						|
nom := `if command -v nom >/dev/null; then echo nom; else echo nix; fi`
 | 
						|
 | 
						|
@_default:
 | 
						|
  just "$(gum choose --ordered --header "Pick a recipie..." $(just --summary --unsorted))"
 | 
						|
 | 
						|
check:
 | 
						|
  nix flake check --keep-going
 | 
						|
 | 
						|
build-machine machine=`just _a_machine`:
 | 
						|
  {{nom}} build .#nixosConfigurations.{{ machine }}.config.system.build.toplevel
 | 
						|
 | 
						|
@update-inputs:
 | 
						|
  nix eval .#inputs --apply builtins.attrNames --json \
 | 
						|
    | jq '.[]' -r \
 | 
						|
    | gum choose --no-limit --height=15 \
 | 
						|
    | xargs nix flake update --commit-lock-file
 | 
						|
 | 
						|
 | 
						|
_a_machine:
 | 
						|
  nix eval .#nixosConfigurations --apply builtins.attrNames --json | jq .[] -r | gum filter
 |