forked from jan-leila/nix-config
		
	renamed domains to apps
This commit is contained in:
		
							parent
							
								
									67efe92536
								
							
						
					
					
						commit
						22ef0e838d
					
				
					 2 changed files with 10 additions and 10 deletions
				
			
		|  | @ -9,7 +9,7 @@ | ||||||
|   ]; |   ]; | ||||||
| 
 | 
 | ||||||
|   options = { |   options = { | ||||||
|     domains = { |     apps = { | ||||||
|       base_domain = lib.mkOption { |       base_domain = lib.mkOption { | ||||||
|         type = lib.types.str; |         type = lib.types.str; | ||||||
|       }; |       }; | ||||||
|  | @ -29,7 +29,7 @@ | ||||||
|         hostname = lib.mkOption { |         hostname = lib.mkOption { | ||||||
|           type = lib.types.str; |           type = lib.types.str; | ||||||
|           description = "hosname that jellyfin will be hosted at"; |           description = "hosname that jellyfin will be hosted at"; | ||||||
|           default = "${config.domains.jellyfin.subdomain}.${config.domains.base_domain}"; |           default = "${config.apps.jellyfin.subdomain}.${config.apps.base_domain}"; | ||||||
|         }; |         }; | ||||||
|       }; |       }; | ||||||
|       forgejo = { |       forgejo = { | ||||||
|  | @ -41,7 +41,7 @@ | ||||||
|         hostname = lib.mkOption { |         hostname = lib.mkOption { | ||||||
|           type = lib.types.str; |           type = lib.types.str; | ||||||
|           description = "hosname that forgejo will be hosted at"; |           description = "hosname that forgejo will be hosted at"; | ||||||
|           default = "${config.domains.forgejo.subdomain}.${config.domains.base_domain}"; |           default = "${config.apps.forgejo.subdomain}.${config.apps.base_domain}"; | ||||||
|         }; |         }; | ||||||
|       }; |       }; | ||||||
|     }; |     }; | ||||||
|  | @ -188,8 +188,8 @@ | ||||||
|         address = "0.0.0.0"; |         address = "0.0.0.0"; | ||||||
|         port = 8080; |         port = 8080; | ||||||
|         settings = { |         settings = { | ||||||
|           server_url = "http://${config.domains.headscale.subdomain}.${config.domains.base_domain}"; |           server_url = "http://${config.apps.headscale.subdomain}.${config.apps.base_domain}"; | ||||||
|           dns_config.base_domain = config.domains.base_domain; |           dns_config.base_domain = config.apps.base_domain; | ||||||
|           logtail.enabled = false; |           logtail.enabled = false; | ||||||
|         }; |         }; | ||||||
|       }; |       }; | ||||||
|  | @ -208,7 +208,7 @@ | ||||||
|         lfs.enable = true; |         lfs.enable = true; | ||||||
|         settings = { |         settings = { | ||||||
|           server = { |           server = { | ||||||
|             DOMAIN = config.domains.forgejo.hostname; |             DOMAIN = config.apps.forgejo.hostname; | ||||||
|             HTTP_PORT = 8081; |             HTTP_PORT = 8081; | ||||||
|           }; |           }; | ||||||
|           service.DISABLE_REGISTRATION = true; |           service.DISABLE_REGISTRATION = true; | ||||||
|  | @ -219,7 +219,7 @@ | ||||||
|       nginx = { |       nginx = { | ||||||
|         enable = false; # TODO: enable this when you want to test all the configs |         enable = false; # TODO: enable this when you want to test all the configs | ||||||
|         virtualHosts = { |         virtualHosts = { | ||||||
|           ${config.domains.headscale.hostname} = { |           ${config.apps.headscale.hostname} = { | ||||||
|             forceSSL = true; |             forceSSL = true; | ||||||
|             enableACME = true; |             enableACME = true; | ||||||
|             locations."/" = { |             locations."/" = { | ||||||
|  | @ -227,12 +227,12 @@ | ||||||
|               proxyWebsockets = true; |               proxyWebsockets = true; | ||||||
|             }; |             }; | ||||||
|           }; |           }; | ||||||
|           ${config.domains.jellyfin.hostname} = { |           ${config.apps.jellyfin.hostname} = { | ||||||
|             forceSSL = true; |             forceSSL = true; | ||||||
|             enableACME = true; |             enableACME = true; | ||||||
|             locations."/".proxyPass = "http://localhost:8096"; |             locations."/".proxyPass = "http://localhost:8096"; | ||||||
|           }; |           }; | ||||||
|           ${config.domains.forgejo.hostname} = { |           ${config.apps.forgejo.hostname} = { | ||||||
|             forceSSL = true; |             forceSSL = true; | ||||||
|             enableACME = true; |             enableACME = true; | ||||||
|             locations."/".proxyPass = "http://localhost:${toString config.services.forgejo.settings.server.HTTP_PORT}"; |             locations."/".proxyPass = "http://localhost:${toString config.services.forgejo.settings.server.HTTP_PORT}"; | ||||||
|  |  | ||||||
|  | @ -23,7 +23,7 @@ | ||||||
|     efiInstallAsRemovable = true; |     efiInstallAsRemovable = true; | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   domains = { |   apps = { | ||||||
|     base_domain = "jan-leila.com"; |     base_domain = "jan-leila.com"; | ||||||
|     headscale.subdomain = "vpn"; |     headscale.subdomain = "vpn"; | ||||||
|     jellyfin.subdomain = "media"; |     jellyfin.subdomain = "media"; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue