diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2018-09-18 08:20:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-18 08:20:53 +0100 |
commit | f8b2c1318cac28fa1885e96bf341db5e9f392bad (patch) | |
tree | 33d96c312ca6cc9cf1b805e035e3d2c31642b684 | |
parent | 5b38f334810a92ba4c8b530492ac5ff5d4314c69 (diff) | |
parent | c76312aea57509327f1242aaff4a3241154ede26 (diff) | |
download | nixlib-f8b2c1318cac28fa1885e96bf341db5e9f392bad.tar nixlib-f8b2c1318cac28fa1885e96bf341db5e9f392bad.tar.gz nixlib-f8b2c1318cac28fa1885e96bf341db5e9f392bad.tar.bz2 nixlib-f8b2c1318cac28fa1885e96bf341db5e9f392bad.tar.lz nixlib-f8b2c1318cac28fa1885e96bf341db5e9f392bad.tar.xz nixlib-f8b2c1318cac28fa1885e96bf341db5e9f392bad.tar.zst nixlib-f8b2c1318cac28fa1885e96bf341db5e9f392bad.zip |
Merge pull request #46634 from mdorman/airsonic-parameters
airsonic: provide additional jvm configuration
-rw-r--r-- | nixos/modules/services/misc/airsonic.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/airsonic.nix b/nixos/modules/services/misc/airsonic.nix index 083587b8ebb1..01d7b3cf6b9d 100644 --- a/nixos/modules/services/misc/airsonic.nix +++ b/nixos/modules/services/misc/airsonic.nix @@ -73,6 +73,24 @@ in { ${cfg.home}/transcoders. ''; }; + + jvmOptions = mkOption { + description = '' + Extra command line options for the JVM running AirSonic. + Useful for sending jukebox output to non-default alsa + devices. + ''; + default = [ + ]; + type = types.listOf types.str; + example = [ + "-Djavax.sound.sampled.Clip='#CODEC [plughw:1,0]'" + "-Djavax.sound.sampled.Port='#Port CODEC [hw:1]'" + "-Djavax.sound.sampled.SourceDataLine='#CODEC [plughw:1,0]'" + "-Djavax.sound.sampled.TargetDataLine='#CODEC [plughw:1,0]'" + ]; + }; + }; }; @@ -98,6 +116,7 @@ in { -Dserver.port=${toString cfg.port} \ -Dairsonic.contextPath=${cfg.contextPath} \ -Djava.awt.headless=true \ + ${toString cfg.jvmOptions} \ -verbose:gc \ -jar ${pkgs.airsonic}/webapps/airsonic.war ''; |