Change:
The extraApp called displays as blank. This was working fine on nextcloud27. Rest of the site is working fine. Steps to reproduce the behavior: am currently on to webpage is blank on: Firefox Chrome Edge It should display the normal forms page. ! Found non-nixos issue relating to it here: Seems it may be a related issue? <!-- Please @ people who are in the list of the offending package or module. If in doubt, check for whoever last touched something. --Please run and paste the result. Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:

Discussion:
catch_workers_output = "yes"; }; <ins> appStores = { # default apps bundled with pkgs.nextcloudXX, e.g. files, contacts apps = { enabled = true; writable = false; }; # apps installed via cfg.extraApps nix-apps = { enabled = cfg.extraApps != { }; linkTarget = pkgs.linkFarm "nix-apps" (mapAttrsToList (name: path: { inherit name path; }) cfg.extraApps); writable = false; }; # apps installed via the app store. store-apps = { enabled = cfg.appstoreEnable == null || cfg.appstoreEnable; linkTarget = "${cfg.home}/store-apps"; writable = true; }; }; webroot = pkgs.runCommand "${cfg.package.name or "nextcloud"}-with-apps" { } '' mkdir $out ln -sfv "${cfg.package}"/* "$out" ${concatStrings (mapAttrsToList (name: store: optionalString (store.enabled && store?linkTarget) '' if [ -e "$out"/${name} ]; then echo "Didn't expect ${name} already in $out!" exit 1 fi ln -sfTv ${store.linkTarget} "$out"/${name} '') appStores)} ''; </ins> inherit (cfg) datadir; phpPackage = cfg.phpPackage.buildEnv {

occ = pkgs.writeScriptBin "nextcloud-occ" '' #! ${pkgs.runtimeShell} <del> cd ${cfg.package} </del> <ins> cd ${webroot} </ins> sudo=exec if [[ "$USER" != nextcloud ]]; then sudo='exec /run/wrappers/bin/sudo -u nextcloud --preserve-env=NEXTCLOUD_CONFIG_DIR --preserve-env=OC_PASS'

# When upgrading the Nextcloud package, Nextcloud can report errors such as # "The files of the app [all apps in /var/lib/nextcloud/apps] were not replaced correctly" # Restarting phpfpm on Nextcloud package update fixes these issues (but this is a workaround). <del> phpfpm-nextcloud.restartTriggers = [ cfg.package ]; </del> <ins> phpfpm-nextcloud.restartTriggers = [ webroot ]; </ins> nextcloud-setup = let c = cfg.config;

nextcloudGreaterOrEqualThan = req: versionAtLeast cfg.package.version req; <ins> mkAppStoreConfig = name: { enabled, writable, ... }: optionalString enabled '' [ 'path' => '${webroot}/${name}', 'url' => '/${name}', 'writable' => ${boolToString writable} ], ''; </ins> overrideConfig = pkgs.writeText "nextcloud-config.php" '' <?php ${optionalString requiresReadSecretFunction ''

} $CONFIG = [ 'apps_paths' => [ <del> ${optionalString (cfg.extraApps != { }) "[ 'path' => '${cfg.home}/nix-apps', 'url' => '/nix-apps', 'writable' => false ],"} [ 'path' => '${cfg.home}/apps', 'url' => '/apps', 'writable' => false ], [ 'path' => '${cfg.home}/store-apps', 'url' => '/store-apps', 'writable' => true ], </del> <ins> ${concatStrings (mapAttrsToList mkAppStoreConfig appStores)} </ins> ], ${optionalString (showAppStoreSetting) "'appstoreenabled' => ${renderedAppStoreSetting},"} 'datadirectory' => '${datadir}/data',

exit 1 fi <del> ln -sf ${cfg.package}/apps ${cfg.home}/ # Install extra apps ln -sfT  ${pkgs.linkFarm "nix-apps" (mapAttrsToList (name: path: { inherit name path; }) cfg.extraApps)}  ${cfg.home}/nix-apps </del> <ins> ${concatMapStrings (name: '' if [ -d "${cfg.home}"/${name} ]; then echo "Cleaning up ${name}; these are now bundled in the webroot store-path!" rm -r "${cfg.home}"/${name} fi '') [ "nix-apps" "apps" ]} </ins> # create nextcloud directories. # if the directories exist already with wrong permissions, we fix that <del> for dir in ${datadir}/config ${datadir}/data ${cfg.home}/store-apps ${cfg.home}/nix-apps; do </del> <ins> for dir in ${datadir}/config ${datadir}/data ${cfg.home}/store-apps; do </ins> if [ ! -e $dir ]; then install -o nextcloud -g nextcloud -d $dir elif [ $(stat -c "%G" $dir) != "nextcloud" ]; then

environment.NEXTCLOUD_CONFIG_DIR = "${datadir}/config"; serviceConfig.Type = "oneshot"; serviceConfig.User = "nextcloud"; <del> serviceConfig.ExecStart = "${phpPackage}/bin/php -f ${cfg.package}/cron.php"; </del> <ins> serviceConfig.ExecStart = "${phpPackage}/bin/php -f ${webroot}/cron.php"; </ins> }; nextcloud-update-plugins = mkIf cfg.autoUpdateApps.enable { after = [ "nextcloud-setup.service" ];

services.nginx.enable = mkDefault true; services.nginx.virtualHosts.${cfg.hostName} = { <del> root = cfg.package; </del> <ins> root = webroot; </ins> locations = { "= /robots.txt" = { priority = 100;

} ''; }; <del> "~ ^/store-apps" = { priority = 201; extraConfig = "root ${cfg.home};"; }; "~ ^/nix-apps" = { priority = 201; extraConfig = "root ${cfg.home};"; }; </del> "^~ /.well-known" = { priority = 210; extraConfig = ''