Add openJDK option

This commit is contained in:
2026-02-13 23:15:31 +01:00
parent 8a72865b4c
commit acec0450ab
3 changed files with 25 additions and 1 deletions
+2
View File
@@ -16,6 +16,8 @@
home.shell.git.enable = true;
home.shell.neovim.enable = true;
home.env.jdk.enable = true;
# No Home Application Folders
targets.darwin.linkApps.enable = false;
targets.darwin.copyApps.enable = false;
+1 -1
View File
@@ -15,7 +15,7 @@
show-recents = false;
tilesize = 30;
autohide = false;
orientation = "right";
orientation = "bottom";
persistent-apps = [
{ app = "/System/Applications/Apps.app"; }
{ app = "/Applications/Zen.app"; }
+22
View File
@@ -0,0 +1,22 @@
{
pkgs,
lib,
config,
...
}:
with lib;
let
cfg = config.home.env.jdk;
in
{
options.home.env.jdk = {
enable = mkEnableOption "Zen Editor options";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
javaPackages.compiler.openjdk25
]
};
}