mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-14 09:53:46 +01:00
20 lines
431 B
Nix
20 lines
431 B
Nix
{ lib, pkgs, config, ... }:
|
|
let
|
|
default-jvms = with pkgs; {
|
|
java-8-openjdk = jdk8;
|
|
java-17-openjdk = jdk17;
|
|
java-21-openjdk = jdk21; # Useless, but jdtls needs it anyways
|
|
};
|
|
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);
|
|
}
|