helm/modules/dev/scala.nix

19 lines
282 B
Nix
Raw Normal View History

{ config, options, lib, pkgs, my, ... }:
2020-03-28 22:48:43 -07:00
with lib;
with lib.my;
let cfg = config.modules.dev.scala;
in {
2020-03-28 22:48:43 -07:00
options.modules.dev.scala = {
enable = mkBoolOpt false;
2020-03-28 22:48:43 -07:00
};
config = mkIf cfg.enable {
user.packages = with pkgs; [
2020-03-28 22:48:43 -07:00
scala
jdk
sbt
];
};
}