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
1 changed files with 7 additions and 1 deletions

View File

@ -89,12 +89,18 @@ in {
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 = {
enable = true;
hostName = "o.xanf.org";
package = pkgs.nextcloud20;
config = {
adminpassFile = toString <secrets> + "/nextcloud_pw";
adminpassFile = "/run/nextcloud.pw";
overwriteProtocol = "https";
};
https = true;