summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2021-04-04 10:23:40 +0200
committermakefu <github@syntax-fehler.de>2021-04-04 10:23:40 +0200
commit93bb408b53f2a6dea4c1bbb1414ddf2573c3a361 (patch)
treee9d31fed8526956bb28596f71ce1205731c19465
parent40be037284c7e263a398826976aaaeac06d0d6c1 (diff)
ma owncloud: 20 -> 21, back up postgres
-rw-r--r--makefu/2configs/deployment/owncloud.nix14
1 files changed, 12 insertions, 2 deletions
diff --git a/makefu/2configs/deployment/owncloud.nix b/makefu/2configs/deployment/owncloud.nix
index 571e56277..86bd4b524 100644
--- a/makefu/2configs/deployment/owncloud.nix
+++ b/makefu/2configs/deployment/owncloud.nix
@@ -36,10 +36,20 @@ in {
forceSSL = true;
enableACME = true;
};
- state = [ "${config.services.nextcloud.home}/config" ];
+ services.postgresqlBackup = {
+ enable = true;
+ databases = [ config.services.nextcloud.config.dbname ];
+ };
+
+ state = [
+ # services.postgresql.dataDir
+ # "${config.services.nextcloud.home}/config"
+ config.services.postgresqlBackup.location
+ ];
+
services.nextcloud = {
enable = true;
- package = pkgs.nextcloud20;
+ package = pkgs.nextcloud21;
hostName = "o.euer.krebsco.de";
# Use HTTPS for links
https = true;