diff options
author | Soispha <soispha@vhack.eu> | 2023-07-22 17:28:02 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-07-22 17:58:36 +0200 |
commit | 3982b3d5abed368985dd9d325b6b544e86701d7e (patch) | |
tree | 29ccede150bb5ec67d4cc845629f86b209a139bf /system/impermanence/mods | |
parent | Fix(system/services/matrix): Fix extra " =" in locations path (diff) | |
download | nixos-server-3982b3d5abed368985dd9d325b6b544e86701d7e.tar.gz nixos-server-3982b3d5abed368985dd9d325b6b544e86701d7e.zip |
Fix(system/services/matrix): Move persisting files ctrl to impermanence
Diffstat (limited to '')
-rw-r--r-- | system/impermanence/mods/matrix.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/system/impermanence/mods/matrix.nix b/system/impermanence/mods/matrix.nix new file mode 100644 index 0000000..7f02609 --- /dev/null +++ b/system/impermanence/mods/matrix.nix @@ -0,0 +1,13 @@ +{...}: { + 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" + ]; +} |