checkpoint

This commit is contained in:
Chris Kruining 2026-04-14 15:27:49 +02:00
parent 66fc9e532a
commit d5b5166b95
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
2 changed files with 31 additions and 6 deletions

View file

@ -17,6 +17,10 @@
database = "synapse";
keyFile = "/var/lib/element-call/key";
in {
imports = [
./mautrix-starr.nix
];
options.${namespace}.services.communication.matrix = {
enable = mkEnableOption "Matrix server (Synapse)";
};
@ -24,7 +28,6 @@ in {
config = mkIf cfg.enable {
${namespace}.services = {
persistance.postgresql.enable = true;
# virtualisation.podman.enable = true;
networking.caddy = {
# globalConfig = ''
@ -255,8 +258,29 @@ in {
};
};
# mautrix-starr = {
# enable = true;
# registerToSynapse = true;
# settings = {
# appservice = {
# provisioning.enabled = false;
# };
# homeserver = {
# address = "http://[::1]:${toString port}";
# domain = domain;
# };
# bridge = {
# permissions = {
# "@chris:${domain}" = "admin";
# };
# };
# };
# };
postgresql = {
enable = true;
ensureDatabases = [database];
ensureUsers = [
{

View file

@ -129,11 +129,12 @@ in {
port = 2007;
};
postgresql = {
ensureDatabases = cfg |> lib.attrNames;
postgresql = let
databases = [] ++ (cfg |> lib.attrNames);
in {
ensureDatabases = databases;
ensureUsers =
cfg
|> lib.attrNames
databases
|> lib.map (service: {
name = service;
ensureDBOwnership = true;