forked from fediversity/fediversity
		
	Small clean up around VM ids
This commit is contained in:
		
							parent
							
								
									bdf43717fa
								
							
						
					
					
						commit
						5aa6ca3ae6
					
				
					 2 changed files with 2 additions and 7 deletions
				
			
		|  | @ -1,12 +1,7 @@ | |||
| { inputs, self, ... }: | ||||
| 
 | ||||
| let | ||||
|   allVmIds = # 100 -- 255 | ||||
|     let | ||||
|       allVmIdsFrom = x: if x > 255 then [ ] else [ x ] ++ allVmIdsFrom (x + 1); | ||||
|     in | ||||
|     allVmIdsFrom 100; | ||||
| 
 | ||||
|   allVmIds = builtins.genList (x: 100 + x) 156; # 100 -- 255 | ||||
|   makeInstaller = import ./makeInstaller.nix; | ||||
| 
 | ||||
| in | ||||
|  |  | |||
|  | @ -16,7 +16,7 @@ in | |||
|   options = { | ||||
|     procolix = { | ||||
|       vmid = mkOption { | ||||
|         type = types.int; | ||||
|         type = types.ints.between 100 255; | ||||
|         description = '' | ||||
|           Identifier of the machine. This is a number between 100 and 255. | ||||
|         ''; | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue