{ pkgs, config, ... }: { services.nextcloud = { enable = true; package = pkgs.nextcloud26; hostName = "cloud.xenia.me.uk"; config = { adminuser = "xenia"; adminpassFile = "/secrets/nextcloud_admin.txt"; }; extraOptions = { trusted_proxies = ["192.168.1.166"]; overwriteprotocol = "https"; }; extraApps = with pkgs.nextcloud26Packages.apps; {inherit calendar contacts;}; extraAppsEnable = true; }; services.nginx.virtualHosts.${config.services.nextcloud.hostName}.listen = [ { addr = "localhost"; port = 8000; } ]; }