My Nix Configuration
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

[marvin] add JAVA_TOOL_OPTIONS to grimmory

dish 722ea91e f83bd706

+19 -1
+19 -1
hosts/marvin/services/booklore.nix
··· 16 16 group = "booklore"; 17 17 }; 18 18 }; 19 + 20 + javaOptions = [ 21 + "-XX:+UseShenandoahGC" 22 + "-XX:ShenandoahGCHeuristics=compact" 23 + "-XX:+UseCompactObjectHeaders" 24 + "-XX:MaxRAMPercentage=20.0" 25 + "-XX:InitialRAMPercentage=4.0" 26 + "-XX:+ExitOnOutOfMemoryError" 27 + ]; 19 28 in 20 29 { 21 30 systemd = { ··· 50 59 description = "Grimmory Server"; 51 60 wantedBy = [ "multi-user.target" ]; 52 61 after = [ "grimmory-db-proxy.service" ]; 53 - path = [ pkgs.unrar-free ]; 62 + # Required as binaries to use on the path 63 + # unrar is used for working with CBX files(extensions .cbz, .cbr, .cb7), which are all comic books 64 + # kepubify is used for converting EPUB files to KEPUB, or Kobo Enhanced EPUB 65 + # ffmpeg is used for extracting metadata from audiobooks 66 + path = [ 67 + pkgs.unrar-free 68 + pkgs.kepubify 69 + pkgs.ffmpeg_7-headless 70 + ]; 54 71 environment = { 55 72 BOOKLORE_PORT = toString d.port; 56 73 TZ = "America/New_York"; ··· 59 76 APP_PATH_CONFIG = "/var/lib/booklore/data"; 60 77 APP_BOOKDROP_FOLDER = "/var/lib/booklore/bookdrop"; 61 78 APP_VERSION = "v${self'.packages.grimmory.version}"; 79 + JAVA_TOOL_OPTIONS = lib.concatStringsSep " " javaOptions; 62 80 }; 63 81 64 82 serviceConfig = {