Override Intellij JDK

This commit is contained in:
GHOSCHT 2025-01-13 17:40:03 +01:00
parent 605d98f559
commit e4ea8e8a4f
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82

View file

@ -1,9 +1,14 @@
{pkgs, ...}: {
{ pkgs, ... }:
let
intellij = pkgs.unstable.jetbrains.idea-ultimate.override {
jdk = pkgs.pkgs.openjdk17;
};
in
{
home.packages = [
(pkgs.unstable.jetbrains.plugins.addPlugins pkgs.unstable.jetbrains.idea-ultimate ["ideavim"])
(pkgs.unstable.jetbrains.plugins.addPlugins intellij [ "ideavim" ])
];
home.sessionVariables = {
JAVA_HOME = "${pkgs.openjdk17}/lib/openjdk";
LD_LIBRARY_PATH = "${pkgs.libGL}/lib:${pkgs.gtk3}/lib:${pkgs.glib.out}/lib:${pkgs.xorg.libXtst}/lib";
};
}