tmpfiles ftw (again)

This commit is contained in:
Ingolf Wagner 2024-06-05 17:40:02 +02:00
parent dc5418f3aa
commit 8ca4f5a568
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
2 changed files with 3 additions and 6 deletions

View file

@ -88,15 +88,13 @@ in
#environment.etc."resolv.conf".text = "nameserver 8.8.8.8"; #environment.etc."resolv.conf".text = "nameserver 8.8.8.8";
systemd.tmpfiles.settings.nextcloud = { systemd.tmpfiles.settings.nextcloud = {
"/run/secrets/nextcloud.root".C = { "/run/secrets/nextcloud.root"."C+" = {
type = "C";
user = "nextcloud"; user = "nextcloud";
group = "nextcloud"; group = "nextcloud";
mode = "400"; mode = "400";
argument = "/run/secrets/nextcloud.root.input"; argument = "/run/secrets/nextcloud.root.input";
}; };
"/run/secrets/nextcloud.database".C = { "/run/secrets/nextcloud.database"."C+" = {
type = "C";
user = "nextcloud"; user = "nextcloud";
group = "nextcloud"; group = "nextcloud";
mode = "400"; mode = "400";

View file

@ -70,8 +70,7 @@ in
system.stateVersion = "23.11"; system.stateVersion = "23.11";
systemd.tmpfiles.settings.nextcloud = { systemd.tmpfiles.settings.nextcloud = {
"/run/secrets/matrix-shared-secret".C = { "/run/secrets/matrix-shared-secret"."C+" = {
type = "C";
user = "matrix-synapse"; user = "matrix-synapse";
group = "matrix-synapse"; group = "matrix-synapse";
mode = "400"; mode = "400";