Make a passwd file readable by the nextcloud user

This commit is contained in:
niten 2023-09-05 08:11:34 -07:00
parent dd02a9c247
commit 5115052215
1 changed files with 6 additions and 1 deletions

View File

@ -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";
};
};
};