dotfiles/nix/cgnix/jvm.nix

20 lines
364 B
Nix
Raw Normal View History

2024-04-10 18:03:17 +02:00
{ lib, pkgs, config, ... }:
let
default-jvms = with pkgs; {
java-8-openjdk = jdk8;
java-17-openjdk = jdk17;
};
in
{
options.cgnix.jvms = lib.mkOption {
default = default-jvms;
};
config.cgnix.entries.jvm = pkgs.linkFarm "jvm" (lib.mapAttrsToList
(k: v: {
name = k;
path = "${v}/lib/openjdk";
})
config.cgnix.jvms);
}