diff options
author | lassulus <lassulus@lassul.us> | 2022-06-07 15:46:12 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2022-06-07 15:46:12 +0200 |
commit | b3786c3a74fce6a742649c37ab2ad1255f5864bf (patch) | |
tree | a5453da91d868781b2339722a4e7bf588993ac09 /makefu/2configs/deployment/owncloud.nix | |
parent | e6f67aa910f78ecf75f3a47a0794497148c60c2b (diff) | |
parent | 53855cd2d0dadb159215c5ed12e6d0be02dca98b (diff) |
Merge remote-tracking branch 'gum/22.05'
Diffstat (limited to 'makefu/2configs/deployment/owncloud.nix')
-rw-r--r-- | makefu/2configs/deployment/owncloud.nix | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/makefu/2configs/deployment/owncloud.nix b/makefu/2configs/deployment/owncloud.nix index 610ba75fe..e5c7e48de 100644 --- a/makefu/2configs/deployment/owncloud.nix +++ b/makefu/2configs/deployment/owncloud.nix @@ -20,6 +20,12 @@ let dbpw = "/run/secret/nextcloud-db-pw"; in { + fileSystems."/var/lib/nextcloud/data" = { + device = "/media/cloud/nextcloud-data"; + options = [ "bind" ]; + }; + + krebs.secret.files.nextcloud-db-pw = { path = dbpw; owner.name = "nextcloud"; @@ -40,16 +46,18 @@ in { enable = true; databases = [ config.services.nextcloud.config.dbname ]; }; - +systemd.services.postgresqlBackup-nextcloud.serviceConfig.SupplementaryGroups = [ "download" ]; + state = [ # services.postgresql.dataDir # "${config.services.nextcloud.home}/config" config.services.postgresqlBackup.location ]; + users.users.nextcloud.extraGroups = [ "download" ]; services.nextcloud = { enable = true; - package = pkgs.nextcloud22; + package = pkgs.nextcloud23; hostName = "o.euer.krebsco.de"; # Use HTTPS for links https = true; @@ -59,10 +67,11 @@ in { autoUpdateApps.startAt = "05:00:00"; caching.redis = true; - # caching.memcached = true; + caching.apcu = true; config = { # Further forces Nextcloud to use HTTPS overwriteProtocol = "https"; + defaultPhoneRegion = "DE"; # Nextcloud PostegreSQL database configuration, recommended over using SQLite dbtype = "pgsql"; @@ -71,7 +80,7 @@ in { dbname = "nextcloud"; dbpassFile = dbpw; adminpassFile = adminpw; - adminuser = "admin"; + adminuser = "root"; }; }; services.redis.enable = true; |