9 cfg = config.services.bloop;
14 options.services.bloop = {
15 extraOptions = lib.mkOption {
16 type = lib.types.listOf lib.types.str;
20 "-J-XX:MaxInlineLevel=20"
21 "-J-XX:+UseParallelGC"
24 Specifies additional command line argument to pass to bloop
29 install = lib.mkOption {
30 type = lib.types.bool;
33 Whether to install a user service for the Bloop server.
35 The service must be manually started for each user with
36 "systemctl --user start bloop".
41 config = lib.mkIf (cfg.install) {
42 systemd.user.services.bloop = {
43 description = "Bloop Scala build server";
46 PATH = lib.mkForce "${lib.makeBinPath [ config.programs.java.package ]}";
50 ExecStart = "${pkgs.bloop}/bin/bloop start";
51 ExecStop = "${pkgs.bloop}/bin/bloop exit";
56 environment.systemPackages = [ pkgs.bloop ];