rename matrix module
This commit is contained in:
		
							parent
							
								
									953c238a47
								
							
						
					
					
						commit
						992ddba373
					
				
					 2 changed files with 10 additions and 29 deletions
				
			
		|  | @ -3,7 +3,7 @@ let | ||||||
|   inherit (builtins) toString toJSON; |   inherit (builtins) toString toJSON; | ||||||
|   inherit (lib) mkIf mkEnableOption; |   inherit (lib) mkIf mkEnableOption; | ||||||
| 
 | 
 | ||||||
|   cfg = config.${namespace}.services.communication.conduit; |   cfg = config.${namespace}.services.communication.matrix; | ||||||
| 
 | 
 | ||||||
|   domain = "kruining.eu"; |   domain = "kruining.eu"; | ||||||
|   fqn = "matrix.${domain}"; |   fqn = "matrix.${domain}"; | ||||||
|  | @ -12,38 +12,19 @@ let | ||||||
|   database = "synapse"; |   database = "synapse"; | ||||||
| in | in | ||||||
| { | { | ||||||
|   options.${namespace}.services.communication.conduit = { |   options.${namespace}.services.communication.matrix = { | ||||||
|     enable = mkEnableOption "conduit (Matrix server)"; |     enable = mkEnableOption "Matrix server (Synapse)"; | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   config = mkIf cfg.enable { |   config = mkIf cfg.enable { | ||||||
|     # ${namespace}.services = { |     ${namespace}.services = { | ||||||
|     #   persistance.postgresql.enable = true; |       persistance.postgresql.enable = true; | ||||||
|       # virtualisation.podman.enable = true; |       # virtualisation.podman.enable = true; | ||||||
|     # }; |     }; | ||||||
| 
 | 
 | ||||||
|     networking.firewall.allowedTCPPorts = [ 4001 8448 ]; |     networking.firewall.allowedTCPPorts = [ 4001 ]; | ||||||
| 
 | 
 | ||||||
|     services = { |     services = { | ||||||
|       matrix-conduit = { |  | ||||||
|         enable = false; |  | ||||||
| 
 |  | ||||||
|         settings.global = { |  | ||||||
|           address = "::"; |  | ||||||
|           port = port; |  | ||||||
| 
 |  | ||||||
|           server_name = domain; |  | ||||||
| 
 |  | ||||||
|           database_backend = "rocksdb"; |  | ||||||
|           # database_path = "/var/lib/matrix-conduit/"; |  | ||||||
| 
 |  | ||||||
|           allow_check_for_updates = false; |  | ||||||
|           allow_registration = false; |  | ||||||
| 
 |  | ||||||
|           enable_lightning_bolt = false; |  | ||||||
|         }; |  | ||||||
|       }; |  | ||||||
| 
 |  | ||||||
|       matrix-synapse = { |       matrix-synapse = { | ||||||
|         enable = true; |         enable = true; | ||||||
| 
 | 
 | ||||||
|  | @ -10,7 +10,7 @@ | ||||||
|       authentication.authelia.enable = true; |       authentication.authelia.enable = true; | ||||||
|       authentication.zitadel.enable = true; |       authentication.zitadel.enable = true; | ||||||
| 
 | 
 | ||||||
|       communication.conduit.enable = true; |       communication.matrix.enable = true; | ||||||
| 
 | 
 | ||||||
|       development.forgejo.enable = true; |       development.forgejo.enable = true; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue