Since IntelliJ keeps forgetting the JDK I set for a project, I was thinking: could I automatically link the latest
jdk (meaning whatever I get when I
nix-shell -p jdk) to a certain path? For example
/opt/jdk or something?
For my user, I can certainly do
nix-build -A jdk '<nixpkgs>' --out-link ~/jdk, but that doesn’t get updated as the system upgrades.