diff options
author | Kevin Rauscher <kevin.rauscher@tomahna.fr> | 2018-06-03 21:48:05 +0200 |
---|---|---|
committer | Kevin Rauscher <kevin.rauscher@tomahna.fr> | 2018-06-23 18:25:44 +0200 |
commit | ead58d100d37fad39a915f1c56f5574c2f06018f (patch) | |
tree | 55269e32c6e1f5418444ab803fc709f82e889ba0 /nixos | |
parent | d8bb4c3ffa9ceb4ba764e217a181f20dd7996b92 (diff) | |
download | nixlib-ead58d100d37fad39a915f1c56f5574c2f06018f.tar nixlib-ead58d100d37fad39a915f1c56f5574c2f06018f.tar.gz nixlib-ead58d100d37fad39a915f1c56f5574c2f06018f.tar.bz2 nixlib-ead58d100d37fad39a915f1c56f5574c2f06018f.tar.lz nixlib-ead58d100d37fad39a915f1c56f5574c2f06018f.tar.xz nixlib-ead58d100d37fad39a915f1c56f5574c2f06018f.tar.zst nixlib-ead58d100d37fad39a915f1c56f5574c2f06018f.zip |
bloop: init at 1.0.0-M11
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/module-list.nix | 1 | ||||
-rw-r--r-- | nixos/modules/services/development/bloop.nix | 37 |
2 files changed, 38 insertions, 0 deletions
diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index 193ef0d1c961..b88d8c1b3242 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -242,6 +242,7 @@ ./services/desktops/gnome3/tracker-miners.nix ./services/desktops/profile-sync-daemon.nix ./services/desktops/telepathy.nix + ./services/development/bloop.nix ./services/development/hoogle.nix ./services/editors/emacs.nix ./services/editors/infinoted.nix diff --git a/nixos/modules/services/development/bloop.nix b/nixos/modules/services/development/bloop.nix new file mode 100644 index 000000000000..56904b7c40e6 --- /dev/null +++ b/nixos/modules/services/development/bloop.nix @@ -0,0 +1,37 @@ +{ config, lib, pkgs, ... }: + +with lib; + +let + + cfg = config.services.bloop; + +in { + + options.services.bloop = { + install = mkOption { + type = types.bool; + default = false; + description = '' + Whether to install a user service for the Bloop server. + + The service must be manually started for each user with + "systemctl --user start bloop". + ''; + }; + }; + + config = mkIf (cfg.install) { + systemd.user.services.bloop = { + description = "Bloop Scala build server"; + + serviceConfig = { + Type = "simple"; + ExecStart = ''${pkgs.bloop}/bin/blp-server''; + Restart = "always"; + }; + }; + + environment.systemPackages = [ pkgs.bloop ]; + }; +} |