diff --git a/services/nextcloud.nix b/services/nextcloud.nix index e0d352e..57e40ed 100644 --- a/services/nextcloud.nix +++ b/services/nextcloud.nix @@ -3,9 +3,9 @@ let myPhp = pkgs.php.buildEnv { extensions = { all, ... }: with all; [ imagick opcache apcu redis memcached ]; extraConfig = '' - memory_limit=2G - post_max_size=2G - upload_max_filesize=2G + memory_limit=5G + post_max_size=5G + upload_max_filesize=5G output_buffering=0 ''; }; diff --git a/services/nexus.nix b/services/nexus.nix index bf771e6..e9b341b 100644 --- a/services/nexus.nix +++ b/services/nexus.nix @@ -1,16 +1,27 @@ -{ config, pkgs, ...}: +{ config, pkgs, lib, ...}: let lAddress = "127.0.0.1"; lPort = 9081; nexusPkgs = pkgs.nexus.overrideAttrs (oldAttrs: rec { pname = "nexus"; - version = "3.28.1-01"; + version = "3.31.1-01"; sourceRoot = "${pname}-${version}"; src = pkgs.fetchurl { url = "https://sonatype-download.global.ssl.fastly.net/nexus/3/nexus-${version}-unix.tar.gz"; - sha256 = "0qba2qaz85hf0vgix3qyqdl8yzdb6qr91sgdmxv3fgjhyvnvqyy8"; + sha256 = "07l0jf02g42xpcb55a693b6gasnzp37iwbz8m7gidiz809p3vh64"; }; + installPhase = '' + runHook preInstall + mkdir -p $out + cp -rfv * .install4j $out + rm -fv $out/bin/nexus.bat + wrapProgram $out/bin/nexus \ + --set JAVA_HOME ${pkgs.jre8_headless} \ + --set ALTERNATIVE_NAME "nexus" \ + --prefix PATH "${lib.makeBinPath [ pkgs.gawk ]}" + runHook postInstall + ''; }); in