Intellij: don't use system wide java
This commit is contained in:
parent
a74a58ecfd
commit
a11a7598fc
1 changed files with 7 additions and 5 deletions
|
|
@ -1,11 +1,6 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.java = {
|
||||
enable = true;
|
||||
package = pkgs.jdk8;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; with jetbrains; [
|
||||
idea-ultimate
|
||||
];
|
||||
|
|
@ -16,5 +11,12 @@
|
|||
url = "https://github.com/catppuccin/jetbrains/releases/download/v2.2.0/Catppuccin.Theme-2.2.0.jar";
|
||||
sha256 = "143jrhdfg7q24mnnzgqwgxq4glsxznxc6awcifpghr9q6nw1hfi0";
|
||||
};
|
||||
|
||||
/*
|
||||
If you use programs.java.enable intellij picks up the jdk package directly, which is not ideal
|
||||
This adds the jdks I want to use to a directory intellij expects jdks to be
|
||||
*/
|
||||
home.file.".jdks/jdk8".source = "${pkgs.jdk8}/lib/openjdk";
|
||||
home.file.".jdks/jdk17".source = "${pkgs.jdk17}/lib/openjdk";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue