summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;