mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-11-11 20:43:00 +01:00
19 lines
364 B
Nix
19 lines
364 B
Nix
{ 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);
|
|
}
|