This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

services matrix: migrate to postgresql

+15 -9
+15 -8
2configs/services/matrix/default.nix
··· 1 - { config, pkgs, ... }: 1 + { config, ... }: 2 2 { 3 3 services.matrix-synapse = { 4 4 enable = true; 5 5 settings = { 6 6 server_name = "lassul.us"; 7 7 # registration_shared_secret = "yolo"; 8 + database = { 9 + args.user = "matrix-synapse"; 10 + args.database = "matrix-synapse"; 11 + name = "psycopg2"; 12 + }; 8 13 turn_uris = [ 9 14 "turn:turn.matrix.org?transport=udp" 10 15 "turn:turn.matrix.org?transport=tcp" ··· 38 43 networking.firewall.interfaces.retiolum.allowedTCPPorts = [ 8008 ]; 39 44 40 45 services.postgresql.enable = true; 41 - services.postgresql.initialScript = pkgs.writeText "synapse-init.sql" '' 42 - CREATE ROLE "matrix-synapse" WITH LOGIN PASSWORD 'synapse'; 43 - CREATE DATABASE "matrix-synapse" WITH OWNER "matrix-synapse" 44 - TEMPLATE template0 45 - LC_COLLATE = "C" 46 - LC_CTYPE = "C"; 47 - ''; 46 + services.postgresql = { 47 + ensureDatabases = [ "matrix-synapse" ]; 48 + ensureUsers = [ 49 + { 50 + name = "matrix-synapse"; 51 + ensureDBOwnership = true; 52 + } 53 + ]; 54 + }; 48 55 }
-1
2configs/services/matrix/proxy.nix
··· 1 - { config, lib, pkgs, ... }: 2 1 { 3 2 services.nginx = { 4 3 virtualHosts = {