forked from jan-leila/nix-config
		
	started draft for installer
This commit is contained in:
		
							parent
							
								
									c487b26112
								
							
						
					
					
						commit
						9d88822266
					
				
					 5 changed files with 94 additions and 15 deletions
				
			
		
							
								
								
									
										30
									
								
								build-installer.sh
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								build-installer.sh
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,30 @@ | |||
| #!/usr/bin/env bash | ||||
| 
 | ||||
| while [ $# -gt 0 ]; do | ||||
|   case "$1" in | ||||
|     --flake*|-f*) | ||||
|       if [[ "$1" != *=* ]]; then shift; fi | ||||
|       flake="${1#*=}" | ||||
|       ;; | ||||
|     # --user*|-u*) | ||||
|     #   if [[ "$1" != *=* ]]; then shift; fi | ||||
|     #   user="${1#*=}" | ||||
|     #   ;; | ||||
|     --help|-h) | ||||
|       echo "--help -h: print this message" | ||||
|       echo "--flake -f: set the flake to build an installer for" | ||||
|     #   echo "--user -u: set the user to install flake as on the target system" | ||||
|       exit 0 | ||||
|       ;; | ||||
|     *) | ||||
|       echo "Error: Invalid argument $1" | ||||
|       exit 1 | ||||
|       ;; | ||||
|   esac | ||||
|   shift | ||||
| done | ||||
| 
 | ||||
| flake=${flake:-"basic"} | ||||
| user=${user:-$USER} | ||||
| 
 | ||||
| nix build .#installerConfigurations.$flake.config.system.build.isoImage | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue