WIP: add meta to packages and create nix-support/private file for unfree packages
			#20
		
		
	
							
								
								
									
										16
									
								
								rebuild.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										16
									
								
								rebuild.sh
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,16 @@
 | 
				
			|||||||
 | 
					#!/bin/sh -e
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if [ "$(id -u)" != 0 ]; then
 | 
				
			||||||
 | 
					 echo "Needs root permissions"
 | 
				
			||||||
 | 
					 exit 1
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					host=$(hostname)
 | 
				
			||||||
 | 
					conf="$(readlink -f .)/${host}/configuration.nix"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if [ ! -e "$conf" ]; then
 | 
				
			||||||
 | 
					 echo "Missing config $conf"
 | 
				
			||||||
 | 
					 exit 1
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					NIXOS_CONFIG="${conf}" nixos-rebuild switch
 | 
				
			||||||
		Reference in New Issue
	
	Block a user