nixos/services.bloop: remove with lib;

This commit is contained in:
Felix Buehler
2024-12-08 13:18:25 +01:00
parent 19fb7137b0
commit 2a63acaac6

View File

@@ -1,7 +1,4 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.bloop;
@@ -9,8 +6,8 @@ let
in {
options.services.bloop = {
extraOptions = mkOption {
type = types.listOf types.str;
extraOptions = lib.mkOption {
type = lib.types.listOf lib.types.str;
default = [ ];
example = [
"-J-Xmx2G"
@@ -23,8 +20,8 @@ in {
'';
};
install = mkOption {
type = types.bool;
install = lib.mkOption {
type = lib.types.bool;
default = false;
description = ''
Whether to install a user service for the Bloop server.
@@ -35,12 +32,12 @@ in {
};
};
config = mkIf (cfg.install) {
config = lib.mkIf (cfg.install) {
systemd.user.services.bloop = {
description = "Bloop Scala build server";
environment = {
PATH = mkForce "${makeBinPath [ config.programs.java.package ]}";
PATH = lib.mkForce "${lib.makeBinPath [ config.programs.java.package ]}";
};
serviceConfig = {
Type = "forking";