fix: Fix Synapse permissions issues

This commit is contained in:
Tera << 8 2025-05-09 23:21:26 -04:00
parent 752815f57b
commit 34351e9911
Signed by: imterah
GPG key ID: 8FA7DD57BA6CEA37

View file

@ -44,10 +44,13 @@
]; ];
}; };
# Manually set the UID and GID to 0 in the environment and in the user configuration to fix sops issues
virtualisation.oci-containers.containers."synapse-synapse" = { virtualisation.oci-containers.containers."synapse-synapse" = {
image = "docker.io/matrixdotorg/synapse:latest"; image = "docker.io/matrixdotorg/synapse:latest";
environment = { environment = {
"SYNAPSE_CONFIG_PATH" = "/data/homeserver.yaml"; "SYNAPSE_CONFIG_PATH" = "/data/homeserver.yaml";
"UID" = "0";
"GID" = "0";
}; };
user = "0:0"; user = "0:0";
volumes = [ volumes = [