From 9a2c8886edd3c2d534be5f3c4a8e8363eef138dc Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Fri, 28 Oct 2022 13:32:49 +0200 Subject: [PATCH] nextcloud: Updates to service --- hosts/architect/nextcloud.nix | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/hosts/architect/nextcloud.nix b/hosts/architect/nextcloud.nix index ee7bdcf..e6bb13b 100644 --- a/hosts/architect/nextcloud.nix +++ b/hosts/architect/nextcloud.nix @@ -3,24 +3,34 @@ let domain = "cloud.giugl.io"; network = import ./network.nix; + redis_port = 6379; in { services = { - mysql.enable = true; - mysql.package = pkgs.unstable.mysql80; + mysql = { + enable = true; + package = pkgs.unstable.mysql80; + }; - redis.servers."default".enable = true; + redis = { + vmOverCommit = true; + servers."nextcloud" = { + enable = true; + port = redis_port; + }; + }; nextcloud = { enable = true; - hostName = "${domain}"; + hostName = domain; https = true; package = pkgs.unstable.nextcloud24; - caching.redis = true; + caching = { + redis = true; + }; autoUpdateApps.enable = true; autoUpdateApps.startAt = "05:00:00"; - logLevel = 1; config = { overwriteProtocol = "https";