{ self, ... }: let d = self.lib.data.services.matrix-server; in { services.matrix-conduit = { enable = true; settings.global = { inherit (d) port; server_name = "pyrox.dev"; max_request_size = 1024 * 1024 * 50; allow_registration = false; allow_federation = true; allow_check_for_updates = false; trusted_servers = [ "matrix.org" "vector.im" "catgirl.cloud" "nixos.org" ]; address = "0.0.0.0"; well_known = { client = "https://${d.extUrl}"; server = "${d.extUrl}:443"; }; media = { backend = "filesystem"; directory_structure = { depth = 2; length = 3; }; retention = [ { space = "100G"; } { scope = "remote"; accessed = "30d"; created = "90d"; } { scope = "thumbnail"; space = "1G"; } ]; }; }; }; }