checkpoint
This commit is contained in:
parent
66fc9e532a
commit
d5b5166b95
2 changed files with 31 additions and 6 deletions
|
|
@ -17,6 +17,10 @@
|
||||||
database = "synapse";
|
database = "synapse";
|
||||||
keyFile = "/var/lib/element-call/key";
|
keyFile = "/var/lib/element-call/key";
|
||||||
in {
|
in {
|
||||||
|
imports = [
|
||||||
|
./mautrix-starr.nix
|
||||||
|
];
|
||||||
|
|
||||||
options.${namespace}.services.communication.matrix = {
|
options.${namespace}.services.communication.matrix = {
|
||||||
enable = mkEnableOption "Matrix server (Synapse)";
|
enable = mkEnableOption "Matrix server (Synapse)";
|
||||||
};
|
};
|
||||||
|
|
@ -24,7 +28,6 @@ in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
${namespace}.services = {
|
${namespace}.services = {
|
||||||
persistance.postgresql.enable = true;
|
persistance.postgresql.enable = true;
|
||||||
# virtualisation.podman.enable = true;
|
|
||||||
|
|
||||||
networking.caddy = {
|
networking.caddy = {
|
||||||
# globalConfig = ''
|
# 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 = {
|
postgresql = {
|
||||||
enable = true;
|
|
||||||
ensureDatabases = [database];
|
ensureDatabases = [database];
|
||||||
ensureUsers = [
|
ensureUsers = [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -129,11 +129,12 @@ in {
|
||||||
port = 2007;
|
port = 2007;
|
||||||
};
|
};
|
||||||
|
|
||||||
postgresql = {
|
postgresql = let
|
||||||
ensureDatabases = cfg |> lib.attrNames;
|
databases = [] ++ (cfg |> lib.attrNames);
|
||||||
|
in {
|
||||||
|
ensureDatabases = databases;
|
||||||
ensureUsers =
|
ensureUsers =
|
||||||
cfg
|
databases
|
||||||
|> lib.attrNames
|
|
||||||
|> lib.map (service: {
|
|> lib.map (service: {
|
||||||
name = service;
|
name = service;
|
||||||
ensureDBOwnership = true;
|
ensureDBOwnership = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue