forked from jan-leila/nix-config
		
	refactor: moved subdomain options into proxy file
This commit is contained in:
		
							parent
							
								
									dfdd6bcc82
								
							
						
					
					
						commit
						9b02e30080
					
				
					 16 changed files with 84 additions and 73 deletions
				
			
		|  | @ -12,14 +12,6 @@ in { | |||
|     ./impermanence.nix | ||||
|   ]; | ||||
| 
 | ||||
|   options.services.actual = { | ||||
|     subdomain = lib.mkOption { | ||||
|       type = lib.types.str; | ||||
|       default = "actual"; | ||||
|       description = "subdomain of base domain that actual will be hosted at"; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   config = lib.mkIf config.services.actual.enable { | ||||
|     systemd.tmpfiles.rules = [ | ||||
|       "d ${dataDirectory} 2770 actual actual" | ||||
|  |  | |||
|  | @ -3,6 +3,14 @@ | |||
|   config, | ||||
|   ... | ||||
| }: { | ||||
|   options.services.actual = { | ||||
|     subdomain = lib.mkOption { | ||||
|       type = lib.types.str; | ||||
|       default = "actual"; | ||||
|       description = "subdomain of base domain that actual will be hosted at"; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   config = lib.mkIf (config.services.actual.enable && config.host.reverse_proxy.enable) { | ||||
|     host = { | ||||
|       reverse_proxy.subdomains.${config.services.actual.subdomain} = { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue