l domsen: set nextcloud pw via krebs.secret

This commit is contained in:
lassulus 2021-09-19 16:48:05 +02:00
parent 48421ac4b0
commit a602201eb2

View File

@ -89,12 +89,18 @@ in {
file_uploads = on file_uploads = on
''; '';
krebs.secret.files.nextcloud_pw = {
path = "/run/nextcloud.pw";
owner.name = "nextcloud";
group-name = "nextcloud";
source-path = toString <secrets> + "/nextcloud_pw";
};
services.nextcloud = { services.nextcloud = {
enable = true; enable = true;
hostName = "o.xanf.org"; hostName = "o.xanf.org";
package = pkgs.nextcloud20; package = pkgs.nextcloud20;
config = { config = {
adminpassFile = toString <secrets> + "/nextcloud_pw"; adminpassFile = "/run/nextcloud.pw";
overwriteProtocol = "https"; overwriteProtocol = "https";
}; };
https = true; https = true;