From 511505221526441b3861ec75cb4495297729c3b9 Mon Sep 17 00:00:00 2001 From: niten Date: Tue, 5 Sep 2023 08:11:34 -0700 Subject: [PATCH] Make a passwd file readable by the nextcloud user --- nextcloud-container.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nextcloud-container.nix b/nextcloud-container.nix index 4cc8405..a6178ad 100644 --- a/nextcloud-container.nix +++ b/nextcloud-container.nix @@ -83,6 +83,11 @@ in { configuration = { boot.tmpOnTmpfs = true; system.nssModules = lib.mkForce [ ]; + environment.etc."nextcloud/admin.passwd" = { + source = "/run/nextcloud/admin.passwd"; + mode = "0400"; + user = "nextcloud"; + }; services = { nscd.enable = false; postgresql.enable = true; @@ -99,7 +104,7 @@ in { database.createLocally = true; config = { dbtype = "pgsql"; - adminpassFile = "/run/nextcloud/admin.passwd"; + adminpassFile = "/etc/nextcloud/admin.passwd"; }; }; };