refactor: complete rewrite
This commit is contained in:
		
							parent
							
								
									19a4bbda3c
								
							
						
					
					
						commit
						8e81943cf9
					
				
					 399 changed files with 3396 additions and 8042 deletions
				
			
		
							
								
								
									
										5
									
								
								modules/nixos/server/options/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								modules/nixos/server/options/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | |||
| { | ||||
|   imports = [ | ||||
|     ./server.nix | ||||
|   ]; | ||||
| } | ||||
							
								
								
									
										22
									
								
								modules/nixos/server/options/server.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								modules/nixos/server/options/server.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,22 @@ | |||
| {lib, ...}: let | ||||
|   inherit (lib) mkOption; | ||||
|   inherit (lib.types) nullOr listOf enum bool; | ||||
| in { | ||||
|   options.ooknet.server = { | ||||
|     exitNode = mkOption { | ||||
|       type = bool; | ||||
|       default = false; | ||||
|       description = "Whether the server will act as a tailscale exit node or not"; | ||||
|     }; | ||||
|     profile = mkOption { | ||||
|       type = nullOr (enum ["linode"]); | ||||
|       default = null; | ||||
|       description = "The server profile the host will use as a base"; | ||||
|     }; | ||||
|     services = mkOption { | ||||
|       type = listOf (enum []); | ||||
|       default = []; | ||||
|       description = "List of services the server will host"; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue