feat(desktop): add symlinks to jdk in home dir

this makes working with intellij way less of a pain
This commit is contained in:
uku 2024-08-08 13:42:25 +02:00
parent 2b26252062
commit 872c13be20
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o
2 changed files with 14 additions and 0 deletions

View file

@ -74,6 +74,7 @@
hm = { hm = {
imports = [ imports = [
catppuccin.homeManagerModules.catppuccin catppuccin.homeManagerModules.catppuccin
../programs/java.nix
]; ];
home = { home = {

13
programs/java.nix Normal file
View file

@ -0,0 +1,13 @@
# wee oo wee oo warning !!! this is a home manager module!!! destined to be put in hm's import, not nixos' !!!!
{
config,
pkgs,
...
}: let
inherit (config.lib.file) mkOutOfStoreSymlink;
in {
home.file = {
".jdks/temurin-21".source = mkOutOfStoreSymlink pkgs.temurin-bin-21;
".jdks/temurin-17".source = mkOutOfStoreSymlink pkgs.temurin-bin-17;
};
}