mirror of
				https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
				synced 2025-10-28 16:08:03 +01:00 
			
		
		
		
	Add chat.pvv.ntnu.no service for hosted element
This commit is contained in:
		
							parent
							
								
									b116c3a56e
								
							
						
					
					
						commit
						7753de6c2b
					
				| @ -4,6 +4,7 @@ | ||||
| 
 | ||||
|   imports = [ | ||||
|     ./synapse.nix | ||||
|     ./element.nix | ||||
|   ]; | ||||
| 
 | ||||
|    | ||||
|  | ||||
							
								
								
									
										48
									
								
								services/matrix/element.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										48
									
								
								services/matrix/element.nix
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,48 @@ | ||||
| { config, lib, pkgs, ... }: | ||||
| 
 | ||||
| { | ||||
|   services.nginx.virtualHosts."chat.pvv.ntnu.no" = { | ||||
|     enableACME = true; | ||||
|     forceSSL = true; | ||||
| 
 | ||||
|     root = pkgs.element-web.override { | ||||
|       conf = { | ||||
|         default_server_config."m.homeserver" = { | ||||
|           base_url = "https://matrix.pvv.ntnu.no"; | ||||
|           server_name = "pvv.ntnu.no"; | ||||
|         }; | ||||
|         disable_3pid_login = true; | ||||
| #        integrations_ui_url = "https://dimension.dodsorf.as/riot"; | ||||
| #        integrations_rest_url = "https://dimension.dodsorf.as/api/v1/scalar"; | ||||
| #        integrations_widgets_urls = [ | ||||
| #          "https://dimension.dodsorf.as/widgets" | ||||
| #        ]; | ||||
| #        integration_jitsi_widget_url = "https://dimension.dodsorf.as/widgets/jitsi"; | ||||
|         defaultCountryCode = "NO"; | ||||
|         showLabsSettings = true; | ||||
|         features = { | ||||
|           feature_latex_maths = true; | ||||
|           feature_pinning = true; | ||||
|           feature_state_counters = true; | ||||
|           feature_custom_status = false; | ||||
|         }; | ||||
|         default_theme = "dark"; | ||||
|         roomDirectory.servers = [ | ||||
|           "pvv.ntnu.no" | ||||
|           "matrix.org" | ||||
|           "libera.chat" | ||||
|           "gitter.im" | ||||
|           "mozilla.org" | ||||
|           "kde.org" | ||||
|           "t2bot.io" | ||||
|           "fosdem.org" | ||||
|           "dodsorf.as" | ||||
|         ]; | ||||
|         enable_presence_by_hs_url = { | ||||
|           "https://matrix.org" = false; | ||||
|           "https://matrix.dodsorf.as" = false; | ||||
|         }; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 System administrator
							System administrator