Make a passwd file readable by the nextcloud user
This commit is contained in:
parent
dd02a9c247
commit
5115052215
|
@ -83,6 +83,11 @@ in {
|
||||||
configuration = {
|
configuration = {
|
||||||
boot.tmpOnTmpfs = true;
|
boot.tmpOnTmpfs = true;
|
||||||
system.nssModules = lib.mkForce [ ];
|
system.nssModules = lib.mkForce [ ];
|
||||||
|
environment.etc."nextcloud/admin.passwd" = {
|
||||||
|
source = "/run/nextcloud/admin.passwd";
|
||||||
|
mode = "0400";
|
||||||
|
user = "nextcloud";
|
||||||
|
};
|
||||||
services = {
|
services = {
|
||||||
nscd.enable = false;
|
nscd.enable = false;
|
||||||
postgresql.enable = true;
|
postgresql.enable = true;
|
||||||
|
@ -99,7 +104,7 @@ in {
|
||||||
database.createLocally = true;
|
database.createLocally = true;
|
||||||
config = {
|
config = {
|
||||||
dbtype = "pgsql";
|
dbtype = "pgsql";
|
||||||
adminpassFile = "/run/nextcloud/admin.passwd";
|
adminpassFile = "/etc/nextcloud/admin.passwd";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue