about summary refs log tree commit diff stats
path: root/system/impermanence/mods/matrix.nix
blob: 3af65304453812ba7059159d8aee79d82fa33c0e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{...}: {
  environment.persistence."/srv".directories = [
    {
      directory = "/var/lib/matrix";
      user = "matrix-synapse";
      group = "matrix-synapse";
      mode = "0700";
    }
    {
      directory = "/var/lib/mautrix-whatsapp";
      user = "mautrix-whatsapp";
      group = "matrix-synapse";
      mode = "0750";
    }
  ];
  systemd.tmpfiles.rules = [
    "d /etc/matrix 0755 matrix-synapse matrix-synapse"
  ];
}