From 14c5fe8c1b61c957ad45d0df801c7928d9e4d134 Mon Sep 17 00:00:00 2001 From: Pascal Wittmann <mail@pascal-wittmann.de> Date: Wed, 13 Oct 2021 12:24:30 +0200 Subject: [PATCH] nixos/subsonic: use jre8 The latest version of Subsonic (6.1.6) does not suport Java SE 9 or later because it depends on the JAXB APIs. Those are considered to be Java EE APIs are no longer contained on the default classpath in Java SE 9 and are completely removed in Java SE 11.. --- nixos/modules/services/misc/subsonic.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/subsonic.nix b/nixos/modules/services/misc/subsonic.nix index 340683ae6f26..98b85918ad18 100644 --- a/nixos/modules/services/misc/subsonic.nix +++ b/nixos/modules/services/misc/subsonic.nix @@ -109,7 +109,7 @@ let cfg = config.services.subsonic; in { after = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; script = '' - ${pkgs.jre}/bin/java -Xmx${toString cfg.maxMemory}m \ + ${pkgs.jre8}/bin/java -Xmx${toString cfg.maxMemory}m \ -Dsubsonic.home=${cfg.home} \ -Dsubsonic.host=${cfg.listenAddress} \ -Dsubsonic.port=${toString cfg.port} \