1 { config, lib, pkgs, ... }:
7 cfg = config.services.bloop;
11 options.services.bloop = {
12 extraOptions = mkOption {
13 type = types.listOf types.str;
17 "-J-XX:MaxInlineLevel=20"
18 "-J-XX:+UseParallelGC"
20 description = lib.mdDoc ''
21 Specifies additional command line argument to pass to bloop
29 description = lib.mdDoc ''
30 Whether to install a user service for the Bloop server.
32 The service must be manually started for each user with
33 "systemctl --user start bloop".
38 config = mkIf (cfg.install) {
39 systemd.user.services.bloop = {
40 description = "Bloop Scala build server";
43 PATH = mkForce "${makeBinPath [ config.programs.java.package ]}";
47 ExecStart = "${pkgs.bloop}/bin/bloop server";
52 environment.systemPackages = [ pkgs.bloop ];