user = "wwwrun";
group = "wwwrun";
permissions = "0600";
+ # This file is not actually included, see activationScript below
text = ''
<?php
+ include('${nextcloud}/version.php');
$CONFIG = array (
// FIXME: change this value when nextcloud starts getting slow
'instanceid' => '${env.instance_id}1',
'passwordsalt' => '${env.password_salt}',
'debug' => false,
'dbtype' => 'pgsql',
- 'version' => '16.0.0.9',
+ 'version' => implode($OC_Version, '.'),
'dbname' => '${env.postgresql.database}',
'dbhost' => '${env.postgresql.socket}',
'dbtableprefix' => 'oc_',
cd ${nextcloud}
NEXTCLOUD_CONFIG_DIR="${nextcloud}/config" \
exec \
- sudo -u wwwrun ${pkgs.php73}/bin/php \
- -c ${pkgs.php73}/etc/php.ini \
+ sudo -u wwwrun ${pkgs.php74}/bin/php \
+ -c ${pkgs.php74}/etc/php.ini \
occ $*
'';
in [ occ ];
${builtins.concatStringsSep "\n" (lib.attrsets.mapAttrsToList (n: v:
"install -D -m 0644 -o wwwrun -g wwwrun -T ${v} ${varDir}/config/${n}.json"
) confs)}
- install -D -m 0600 -o wwwrun -g wwwrun -T /var/secrets/webapps/tools-nextcloud ${varDir}/config/config.php
+ #install -D -m 0600 -o wwwrun -g wwwrun -T /var/secrets/webapps/tools-nextcloud ${varDir}/config/config.php
'';
};
# FIXME: add a warning when config.php changes
user = "wwwrun";
group = "wwwrun";
settings = phpFpm.pool;
- phpPackage = pkgs.php73.withExtensions(e: pkgs.php73.enabledExtensions ++ [ e.redis e.apcu e.opcache ]);
+ phpPackage = pkgs.php74.withExtensions(e: pkgs.php74.enabledExtensions ++ [ e.redis e.apcu e.opcache ]);
};
services.cron = {
#! ${pkgs.stdenv.shell}
export LOCALE_ARCHIVE=/run/current-system/sw/lib/locale/locale-archive
export PATH=/run/wrappers/bin:$PATH
- ${pkgs.php73}/bin/php -d memory_limit=512M -f ${nextcloud}/cron.php
+ ${pkgs.php74}/bin/php -d memory_limit=512M -f ${nextcloud}/cron.php
'';
in [
''
{ buildApp, nextcloudVersion }:
-assert nextcloudVersion == 17;
+assert nextcloudVersion == 18;
buildApp rec {
appName = "deck";
- version = "0.8.2";
+ version = "1.0.0";
url = "https://github.com/nextcloud/${appName}/releases/download/v${version}/${appName}.tar.gz";
- sha256 = "0n4z1wbshahhvh3r532brzg0hgsyaf5djxpxg6hmma4ycrn4s358";
+ sha256 = "13r9vd5bf75slrzhvi6bybazhh1vcx0n4a8a7hf97bxr7pq2f91j";
}
{ buildApp, nextcloudVersion }:
-assert nextcloudVersion == 17;
+assert nextcloudVersion == 18;
buildApp rec {
appName = "spreed";
- version = "7.0.3";
+ version = "8.0.8";
url = "https://github.com/nextcloud/${appName}/releases/download/v${version}/${appName}-${version}.tar.gz";
- sha256 = "09s5wabb516sfrq765hp6viag78xg349glwdxayjkbygkif0hw82";
+ sha256 = "19szk61ixzzrabs63l2fihx7k4f6a8k4kdzpa0xxzv5w9ssqjhbj";
}
-{ varDir ? "/var/lib/nextcloud", nextcloudVersion ? 17, otherConfig ? {}, lib, stdenv, callPackage, fetchurl }:
+{ varDir ? "/var/lib/nextcloud", nextcloudVersion ? 18, otherConfig ? {}, lib, stdenv, callPackage, fetchurl }:
let
appNames = [
"apporder" "audioplayer" "bookmarks" "calendar" "carnet" "contacts"
in newNextcloud;
package = stdenv.mkDerivation rec {
name = "nextcloud-${version}";
- version = "${builtins.toString nextcloudVersion}.0.6";
+ version = "${builtins.toString nextcloudVersion}.0.4";
src = fetchurl {
url = "https://download.nextcloud.com/server/releases/${name}.tar.bz2";
- sha256 = "0qq7lkgzsn1zakfym5bjqzpcisxmgfcdd927ddqlhddy3zvgxrxx";
+ sha256 = "0aa3f4xbkzacfw0h9aic0ywk5mqlwka83qaszizj8lmk68kf3n7s";
};
installPhase = ''