phantom: add script to update, fmt
This commit is contained in:
		
							parent
							
								
									e0d4d4f3d9
								
							
						
					
					
						commit
						1b2d1eaa74
					
				
					 2 changed files with 15 additions and 2 deletions
				
			
		
							
								
								
									
										12
									
								
								switch-phantom
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										12
									
								
								switch-phantom
									
										
									
									
									
										Executable file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,12 @@
 | 
			
		|||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
nix fmt
 | 
			
		||||
 | 
			
		||||
git diff
 | 
			
		||||
 | 
			
		||||
nixos-rebuild switch --flake .#phantom \
 | 
			
		||||
  --update-input nixpkgs \
 | 
			
		||||
  --no-write-lock-file \
 | 
			
		||||
  --build-host phantom \
 | 
			
		||||
  --target-host phantom \
 | 
			
		||||
  "$@"
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue