{...}: { environment.persistence."/srv".directories = [ { directory = "/var/lib/matrix"; user = "matrix-synapse"; group = "matrix-synapse"; mode = "0700"; } ]; systemd.tmpfiles.rules = [ "d /etc/matrix 0755 matrix-synapse matrix-synapse" ]; }