From 5b95414949002bee1f948c64a5b508b355be687c Mon Sep 17 00:00:00 2001 From: Spotlight Date: Tue, 18 Feb 2025 02:15:48 -0600 Subject: [PATCH] sequia: Remove system JDK This is not needed on this system. --- hosts/darwin/sequoia/configuration.nix | 28 -------------------------- 1 file changed, 28 deletions(-) diff --git a/hosts/darwin/sequoia/configuration.nix b/hosts/darwin/sequoia/configuration.nix index 3761f32..3c9c925 100644 --- a/hosts/darwin/sequoia/configuration.nix +++ b/hosts/darwin/sequoia/configuration.nix @@ -7,34 +7,6 @@ variables.EDITOR = "${pkgs.vim}/bin/vim"; }; - # Per https://github.com/LnL7/nix-darwin/issues/663, - # nix-darwin only supports a few specific named activation scripts. - # We'll leverage `extraActivation` to symlink our JDKs. - system.activationScripts.extraActivation.text = '' - ############## - # Latest JDK # - ############## - # Regardless of version, we'd like the latest JDK available. - - # Remove the symlink if it doesn't already exist. - rm -f /Library/Java/JavaVirtualMachines/zulu-latest.jdk - - # We should only have a single JDK present within our package, - # but let's limit `find` regardless. - JDK_LOCATION="$(find "${pkgs.jdk}" -name "*.jdk" | head -n1)" - - # Symlink! - ln -sf "$JDK_LOCATION" "/Library/Java/JavaVirtualMachines/zulu-latest.jdk" - - ########## - # JDK 17 # - ########## - # We'd also like JDK 17 available, for legacy purposes. - # (The author of this is as disappointed in this as the reader should be.) - rm -f /Library/Java/JavaVirtualMachines/zulu-17.jdk - ln -sf "${pkgs.jdk17}/zulu-17.jdk" "/Library/Java/JavaVirtualMachines/zulu-17.jdk" - ''; - # Auto upgrade the nix package. nix = { # Keep the latest version of Nix.