From e4ea8e8a4f0eb67655862c953d54352f98d76eea Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Mon, 13 Jan 2025 17:40:03 +0100 Subject: [PATCH] Override Intellij JDK --- home/features/coding/intellij.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/home/features/coding/intellij.nix b/home/features/coding/intellij.nix index 6af9cf9..e62e046 100644 --- a/home/features/coding/intellij.nix +++ b/home/features/coding/intellij.nix @@ -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"; }; }