-with import ../../libs.nix;
-with nixpkgs_unstable;
+{ stdenv, fetchurl, checkEnv, writeText, lib, phpPackages, php }:
let
nextcloud = let
# FIXME: initial sync
# FIXME: backup
buildApp = { appName, version, url, sha256, installPhase ? "mkdir -p $out && cp -R . $out/" }:
let
nextcloud = let
# FIXME: initial sync
# FIXME: backup
buildApp = { appName, version, url, sha256, installPhase ? "mkdir -p $out && cp -R . $out/" }:
assert checkEnv "NIXOPS_NEXTCLOUD_INSTANCE_ID";
assert checkEnv "NIXOPS_NEXTCLOUD_SECRET";
assert checkEnv "NIXOPS_NEXTCLOUD_REDIS_DB_INDEX";
assert checkEnv "NIXOPS_NEXTCLOUD_INSTANCE_ID";
assert checkEnv "NIXOPS_NEXTCLOUD_SECRET";
assert checkEnv "NIXOPS_NEXTCLOUD_REDIS_DB_INDEX";
'dbtableprefix' => 'oc_',
'dbuser' => '${builtins.getEnv "NIXOPS_NEXTCLOUD_DB_USER"}',
'dbpassword' => '${builtins.getEnv "NIXOPS_NEXTCLOUD_DB_PASSWORD"}',
'dbtableprefix' => 'oc_',
'dbuser' => '${builtins.getEnv "NIXOPS_NEXTCLOUD_DB_USER"}',
'dbpassword' => '${builtins.getEnv "NIXOPS_NEXTCLOUD_DB_PASSWORD"}',
)}
'';
meta = {
description = "Sharing solution for files, calendars, contacts and more";
homepage = https://nextcloud.com;
)}
'';
meta = {
description = "Sharing solution for files, calendars, contacts and more";
homepage = https://nextcloud.com;
- maintainers = with stdenv.lib.maintainers; [ schneefux bachp globin fpletz ];
- license = stdenv.lib.licenses.agpl3Plus;
- platforms = with stdenv.lib.platforms; unix;
+ maintainers = with lib.maintainers; [ schneefux bachp globin fpletz ];
+ license = lib.licenses.agpl3Plus;
+ platforms = with lib.platforms; unix;
php_admin_value[output_buffering] = 0
php_admin_value[max_execution_time] = 1800
php_admin_value[zend_extension] = "opcache"
php_admin_value[output_buffering] = 0
php_admin_value[max_execution_time] = 1800
php_admin_value[zend_extension] = "opcache"
php_value[opcache.enable_cli] = 1
php_value[opcache.interned_strings_buffer] = 8
php_value[opcache.max_accelerated_files] = 10000
php_value[opcache.enable_cli] = 1
php_value[opcache.interned_strings_buffer] = 8
php_value[opcache.max_accelerated_files] = 10000
php_admin_value[memory_limit] = 512M
php_admin_value[open_basedir] = "${basedir}:/proc/meminfo:/dev/urandom:/proc/self/fd:/tmp"
php_admin_value[memory_limit] = 512M
php_admin_value[open_basedir] = "${basedir}:/proc/meminfo:/dev/urandom:/proc/self/fd:/tmp"