feat(desktop): add symlinks to jdk in home dir
this makes working with intellij way less of a pain
This commit is contained in:
parent
2b26252062
commit
872c13be20
2 changed files with 14 additions and 0 deletions
|
@ -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
13
programs/java.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue