forked from fediversity/fediversity
		
	Generate list of machines from machines subdir
				
					
				
			This commit is contained in:
		
							parent
							
								
									2e346d1de7
								
							
						
					
					
						commit
						4e30363c5f
					
				
					 2 changed files with 5 additions and 17 deletions
				
			
		|  | @ -13,13 +13,9 @@ everything will become much cleaner. | |||
|    above 100. For instance, `fedi117`. | ||||
| 
 | ||||
| 2. Add a basic configuration for the machine. These typically go in | ||||
|    `infra/<name>/default.nix`. You can look at other `fediXXX` VMs to find | ||||
|    inspiration. You probably do not need a `nixos.module` option at this point. | ||||
| 
 | ||||
| 3. Add the machine to a deployment. This takes place in `infra/flake-parts.nix`. | ||||
|    Please remember to also update the table at the end of this file. | ||||
| 
 | ||||
|    FIXME: Generate the table automatically (https://git.fediversity.eu/Fediversity/Fediversity/issues/89) | ||||
|    `infra/machines/<name>/default.nix`. You can look at other `fediXXX` VMs to | ||||
|    find inspiration. You probably do not need a `nixos.module` option at this | ||||
|    point. | ||||
| 
 | ||||
| 2. Add a file for each of those VM's public keys, eg. | ||||
|    ``` | ||||
|  |  | |||
|  | @ -6,6 +6,7 @@ | |||
| }: | ||||
| 
 | ||||
| let | ||||
|   inherit (builtins) readDir; | ||||
|   inherit (lib) | ||||
|     attrNames | ||||
|     mkOption | ||||
|  | @ -115,16 +116,7 @@ let | |||
|       ; | ||||
|   }; | ||||
| 
 | ||||
|   machines = [ | ||||
|     "vm02116" | ||||
|     "vm02179" | ||||
|     "vm02186" | ||||
|     "vm02187" | ||||
| 
 | ||||
|     "fedi200" | ||||
|     "fedi201" | ||||
|   ]; | ||||
| 
 | ||||
|   machines = attrNames (readDir ./machines); | ||||
|   testMachineConfigurations = import ./test-machines/configuration.nix; | ||||
| 
 | ||||
| in | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue