This commit is contained in:
		
							parent
							
								
									0d1e1fe033
								
							
						
					
					
						commit
						f099496668
					
				
					 24 changed files with 245 additions and 128 deletions
				
			
		
							
								
								
									
										58
									
								
								clan.nix
									
										
									
									
									
								
							
							
						
						
									
										58
									
								
								clan.nix
									
										
									
									
									
								
							|  | @ -7,25 +7,29 @@ | |||
| 
 | ||||
|   inventory.machines = { | ||||
|     m1 = { | ||||
|       name = "Management node 1"; | ||||
|       name = "management-1"; | ||||
|       description = "Management node 1"; | ||||
|       machineClass = "nixos"; | ||||
|       tags = [ "cloud:amarth" "region:oss" "nodeType:management" "criticallity: medium" "" ]; | ||||
|       tags = [ "cloud:amarth" "region:oss" "nodeType:management" "criticallity:critical" "" ]; | ||||
|       deploy.targetHost = "root@192.168.1.222"; | ||||
|     }; | ||||
|     c1 = { | ||||
|       name = "Compute node 1"; | ||||
|       name = "compute-1"; | ||||
|       description = "Compute node 1"; | ||||
|       machineClass = "nixos"; | ||||
|       tags = [ "cloud:amarth" "region:oss" "nodeType:compute" "criticallity: medium" "" ]; | ||||
|       tags = [ "cloud:amarth" "region:oss" "nodeType:compute" "criticallity:medium" "" ]; | ||||
|     }; | ||||
|     c2 = { | ||||
|       name = "Compute node 2"; | ||||
|       name = "compute-2"; | ||||
|       description = "Compute node 2"; | ||||
|       machineClass = "nixos"; | ||||
|       tags = [ "cloud:amarth" "region:oss" "nodeType:compute" "criticallity: medium" "" ]; | ||||
|       tags = [ "cloud:amarth" "region:oss" "nodeType:compute" "criticallity:medium" "" ]; | ||||
|     }; | ||||
|     c3 = { | ||||
|       name = "Compute node 3"; | ||||
|       name = "compute-3"; | ||||
|       description = "Compute node 3"; | ||||
|       machineClass = "nixos"; | ||||
|       tags = [ "cloud:amarth" "region:oss" "nodeType:compute" "criticallity: medium" "" ]; | ||||
|       tags = [ "cloud:amarth" "region:oss" "nodeType:compute" "criticallity:medium" "" ]; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|  | @ -45,24 +49,28 @@ | |||
| 
 | ||||
|     zitadel = { | ||||
|       module = { | ||||
|         name = "@amarth/zitadel"; | ||||
|         name = "zitadel"; | ||||
|         input = "amarth-services"; | ||||
|       }; | ||||
| 
 | ||||
|       roles.controller.machines."m1" = {}; | ||||
|       roles.controller = { | ||||
|         machines."m1" = {}; | ||||
|         settings = { | ||||
|           hostName = "auth.amarth.cloud"; | ||||
|           displayName = "Amarth"; | ||||
|         }; | ||||
|       }; | ||||
|     }; | ||||
|      | ||||
|     k3s = { | ||||
|       module = { | ||||
|         name = "@amarth/k3s"; | ||||
|         input = "amarth"; | ||||
|         name = "k3s"; | ||||
|         input = "amarth-services"; | ||||
|       }; | ||||
| 
 | ||||
|       roles.server.machines."c1" = {}; | ||||
|        | ||||
|       roles.agent.machines."c2" = {}; | ||||
|       roles.agent.machines."c3" = {}; | ||||
| >>>>>>> 81bc14dcb9b649451939a01d3828ca4c170dc897 | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|  | @ -70,8 +78,26 @@ | |||
|   # machines/jon/configuration.nix will be automatically imported. | ||||
|   # See: https://docs.clan.lol/guides/more-machines/#automatic-registration | ||||
|   machines = { | ||||
|     m1 = { config, pkgs, ... }: { | ||||
|       environment.systemPackages = [ pkgs.asciinema ]; | ||||
|     # m1 = { config, pkgs, ... }: { | ||||
|     #   environment.systemPackages = [ pkgs.asciinema ]; | ||||
|        | ||||
|     #   nixpkgs.hostPlatform = "x86_64-linux"; | ||||
|     # }; | ||||
|     m1 = { | ||||
|       nixpkgs.hostPlatform = "x86_64-linux"; | ||||
|       networking.domain = "amarth.local"; | ||||
|     }; | ||||
|     c1 = { | ||||
|       nixpkgs.hostPlatform = "x86_64-linux"; | ||||
|       networking.domain = "amarth.local"; | ||||
|     }; | ||||
|     c2 = { | ||||
|       nixpkgs.hostPlatform = "x86_64-linux"; | ||||
|       networking.domain = "amarth.local"; | ||||
|     }; | ||||
|     c3 = { | ||||
|       nixpkgs.hostPlatform = "x86_64-linux"; | ||||
|       networking.domain = "amarth.local"; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue