]> git.taranathan.com Git - FRC2027.git/commitdiff
make work for others
authorTaran Nathan <moogoesmeow123@gmail.com>
Sun, 31 May 2026 03:41:17 +0000 (20:41 -0700)
committerTaran Nathan <moogoesmeow123@gmail.com>
Sun, 31 May 2026 03:41:36 +0000 (20:41 -0700)
devenv.nix

index 7bb2c108152861a1ef803637c14a25a2439e73ff..e20324840dd37de2ee542c96171d567428bd2be5 100644 (file)
@@ -6,6 +6,9 @@
   ...
 }:
 
+let
+  user = builtins.getEnv "USER";
+in
 {
   # https://devenv.sh/basics/
   env.GREET = "devenv";
@@ -66,7 +69,9 @@
     };
   };
 
-  JAVA_HOME = "/usr/lib/jvm/java-21-openjdk";
+  # for taran's computer, should not run for anyone else
+  # env.JAVA_HOME = lib.mkForce "/usr/lib/jvm/java-21-openjdk";
+  env.JAVA_HOME = if user == "moo" then lib.mkForce "/usr/lib/jvm/java-21-openjdk" else lib.mkDefault "";
 
   # https://devenv.sh/git-hooks/
   # git-hooks.hooks.shellcheck.enable = true;