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..

(cherry picked from commit 14c5fe8c1b61c957ad45d0df801c7928d9e4d134)
This commit is contained in:
Pascal Wittmann 2021-10-13 12:24:30 +02:00 committed by github-actions[bot]
parent f001876680
commit 668bbeb2d2

View File

@ -108,7 +108,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} \