{...}: { 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" ]; }