{ config, ... } : let in { age.secrets = { matrix_mjolnir_pass = { file = ../secrets/matrix_mjolnir_pass.age; owner = "mjolnir"; group = "mjolnir"; mode = "0600"; }; matrix_mjolnir_token = { file = ../secrets/matrix_mjolnir_token.age; owner = "mjolnir"; group = "mjolnir"; mode = "0600"; }; }; services.mjolnir = { enable = true; homeserverUrl = config.services.matrix-synapse-next.settings.public_baseurl; protectedRooms = [ "https://matrix.to/#/!zDkrFrfuMIKbqYFbFv:grimmauld.de" ]; # accessTokenFile = config.age.secrets.matrix_mjolnir_token.path; managementRoom = "!kgfXXqEYHGgToIwhMP:grimmauld.de"; pantalaimon = { enable = true; username = "mjolnir"; options = { homeserver = config.services.matrix-synapse-next.settings.public_baseurl; }; passwordFile = config.age.secrets.matrix_mjolnir_pass.path; }; }; }