From acec0450abcf0616d659a974193246b99954f41e Mon Sep 17 00:00:00 2001 From: Laurent Gueret Date: Fri, 13 Feb 2026 23:15:31 +0100 Subject: [PATCH] Add openJDK option --- hosts/darwin/home/alistreaza.nix | 2 ++ hosts/darwin/system/partials/system.nix | 2 +- modules/home/common/env/openjdk.nix | 22 ++++++++++++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 modules/home/common/env/openjdk.nix diff --git a/hosts/darwin/home/alistreaza.nix b/hosts/darwin/home/alistreaza.nix index b427e60..305c742 100644 --- a/hosts/darwin/home/alistreaza.nix +++ b/hosts/darwin/home/alistreaza.nix @@ -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; diff --git a/hosts/darwin/system/partials/system.nix b/hosts/darwin/system/partials/system.nix index dc121df..e2150b0 100644 --- a/hosts/darwin/system/partials/system.nix +++ b/hosts/darwin/system/partials/system.nix @@ -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"; } diff --git a/modules/home/common/env/openjdk.nix b/modules/home/common/env/openjdk.nix new file mode 100644 index 0000000..0bde950 --- /dev/null +++ b/modules/home/common/env/openjdk.nix @@ -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 + ] + + }; +}