this repo has no description
2
fork

Configure Feed

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

mjolnir working set up a janitor for compressing state

+31 -10
+21
profiles/matrix/compress-state-service.nix
··· 1 + { pkgs, ... }: 2 + { 3 + environment.systemPackages = [ pkgs.matrix-synapse-tools.rust-synapse-compress-state ]; 4 + systemd.services.compress-matrix-state = { 5 + serviceConfig.Type = "oneshot"; 6 + path = [ 7 + pkgs.matrix-synapse-tools.rust-synapse-compress-state 8 + ]; 9 + script = '' 10 + synapse_auto_compressor -p "host=/run/postgresql port=5432 user=matrix-synapse dbname=matrix-synapse" -n 2000000 -c 10000 11 + ''; 12 + serviceConfig = { 13 + User = "matrix-synapse"; 14 + }; 15 + }; 16 + systemd.timers.compress-matrix-state = { 17 + wantedBy = [ "timers.target" ]; 18 + partOf = [ "compress-matrix-state.service" ]; 19 + timerConfig.OnCalendar = [ "weekly" ]; 20 + }; 21 + }
+7 -7
profiles/matrix/default.nix
··· 1 - { config, lib, pkgs, ... }: 1 + { self, config, lib, pkgs, ... }: 2 2 3 3 { 4 4 imports = [ 5 5 ./mautrix-telegram.nix 6 - # ./mjolnir.nix # need to create the mod user 6 + ./mjolnir.nix 7 7 ./heisenbridge.nix 8 + ./compress-state-service.nix 8 9 ]; 9 - environment.systemPackages = [ pkgs.matrix-synapse-tools.rust-synapse-compress-state ]; 10 10 age.secrets.synapse-database-password.file = "${self}/secrets/synapse-database-password.age"; 11 11 age.secrets.synapse-database-password.owner = "matrix-synapse"; 12 - age.secrets.synapse-database-password.file = "${self}/secrets/synapse-config.age"; 13 - age.secrets.synapse-database-password.owner = "matrix-synapse"; 12 + age.secrets.synapse-config.file = "${self}/secrets/synapse-config.age"; 13 + age.secrets.synapse-config.owner = "matrix-synapse"; 14 14 15 15 services.matrix-synapse = { 16 16 enable = true; ··· 50 50 "turn:turn.sealight.xyz:3478?transport=tcp" 51 51 ]; 52 52 # turn_shared_secret = config.services.coturn.static-auth-secret; 53 - extraConfig = "/run/agenix/synapse-config"; 54 53 # Example config (saved as secret??) 55 54 # '' 56 55 # max_upload_size: "50M" ··· 59 58 # enable_registration_without_verification: true 60 59 # ''; 61 60 enable_metrics = true; 62 - enable_registration = true; 61 + enable_registration = false; 63 62 database = { 64 63 name = "psycopg2"; 65 64 args.passfile = "/run/agenix/synapse-database-password"; 66 65 }; 67 66 }; 67 + extraConfigFiles = [ "/run/agenix/synapse-config" ]; 68 68 ## coturn based TURN server integration (TURN server setup mentioned later), 69 69 ## shared secret generated while configuring coturn 70 70 ## and reused here (power of Nix being a real programming language)
+2 -2
profiles/matrix/mautrix-telegram.nix
··· 1 - { config, lib, pkgs, ... }: 1 + { self, config, lib, pkgs, ... }: 2 2 { 3 3 age.secrets.telegram-matrix-env.file = "${self}/secrets/telegram-matrix-env.age"; 4 - age.secrets.telegram-matrix-env.owner = "mautrix-telegram"; 4 + #age.secrets.telegram-matrix-env.owner = "mautrix-telegram"; 5 5 services.mautrix-telegram = { 6 6 enable = true; 7 7 environmentFile = "/run/agenix/telegram-matrix-env";
+1 -1
profiles/matrix/mjolnir.nix
··· 1 - { pkgs, lib, config, ... }: 1 + { self, pkgs, lib, config, ... }: 2 2 { 3 3 age.secrets.sealight-mod-password.file = "${self}/secrets/sealight-mod-password.age"; 4 4 age.secrets.sealight-mod-password.owner = "mjolnir";