From be4585cb3ff97bd668bdb758f60e882518335050 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Mon, 10 Jun 2024 18:40:06 +0200 Subject: [PATCH] Nextcloud upgrade --- modules/nixos/nextcloud.nix | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/modules/nixos/nextcloud.nix b/modules/nixos/nextcloud.nix index ee5254a..9fed0ca 100644 --- a/modules/nixos/nextcloud.nix +++ b/modules/nixos/nextcloud.nix @@ -1,4 +1,4 @@ -{ pkgs, config, lib, ... }: +{ pkgs, config, ... }: let hosts = import ../../hosts.nix; in @@ -24,11 +24,8 @@ in database.createLocally = true; - # autoUpdateApps.enable = true; - appstoreEnable = lib.mkForce false; - extraApps = { }; - extraAppsEnable = false; - extraOptions = { + autoUpdateApps.enable = true; + settings = { enabledPreviewProviders = [ "OC\\Preview\\BMP" @@ -44,10 +41,7 @@ in "OC\\Preview\\HEIC" # Enable preview of HEIC/HEIF images (others are default) "OC\\Preview\\EMF" ]; - - }; - config = { - trustedProxies = [ + trusted_proxies = [ # hosts.zerotier.ipv4."baldur.zto" # hosts.zerotier.ipv6."baldur.zto" hosts.tailscale.ipv4."baldur.tsn" @@ -55,10 +49,12 @@ in # "baldur.zto" "baldur.tsn" ]; + overwriteprotocol = "https"; + }; + config = { dbtype = "pgsql"; # extraTrustedDomains = [ "freya.tsn" ]; adminpassFile = config.age.secrets.nextcloud_admin_secret.path; - overwriteProtocol = "https"; # objectstore.s3 = { # enable = true; # bucket = "nextcloud-storage";