[object Object]

← back to Exo

add resources dir to nix (#1376)

7b6cad94c675c99899d75376f60994f314c48d6c · 2026-02-04 16:38:43 +0000 · Evan Quiney

add resources directory to the nix exo package, and fixes the env for the dashboard dir

Files touched

Diff

commit 7b6cad94c675c99899d75376f60994f314c48d6c
Author: Evan Quiney <evanev7@gmail.com>
Date:   Wed Feb 4 16:38:43 2026 +0000

    add resources dir to nix (#1376)
    
    add resources directory to the nix exo package, and fixes the env for the dashboard dir
---
 .github/workflows/pipeline.yml | 4 +++-
 python/parts.nix               | 3 ++-
 src/exo/shared/constants.py    | 2 +-
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml
index 0f908f1b..c2589453 100644
--- a/.github/workflows/pipeline.yml
+++ b/.github/workflows/pipeline.yml
@@ -142,4 +142,6 @@ jobs:
           # Run pytest outside sandbox (needs GPU access for MLX)
           export HOME="$RUNNER_TEMP"
           export EXO_TESTS=1
-          EXO_RESOURCES_DIR="$PWD/resources" $TEST_ENV/bin/python -m pytest src -m "not slow" --import-mode=importlib
+          export EXO_DASHBOARD_DIR="$PWD/dashboard/" 
+          export EXO_RESOURCES_DIR="$PWD/resources" 
+          $TEST_ENV/bin/python -m pytest src -m "not slow" --import-mode=importlib
diff --git a/python/parts.nix b/python/parts.nix
index 7423ed31..9d5580ae 100644
--- a/python/parts.nix
+++ b/python/parts.nix
@@ -69,7 +69,8 @@
           # Create wrapper scripts
           for script in exo exo-master exo-worker; do
             makeWrapper ${exoVenv}/bin/$script $out/bin/$script \
-              --set DASHBOARD_DIR ${self'.packages.dashboard} \
+              --set EXO_DASHBOARD_DIR ${self'.packages.dashboard} \
+              --set EXO_RESOURCES_DIR ${inputs.self + "/resources"} \
               ${lib.optionalString pkgs.stdenv.isDarwin "--prefix PATH : ${pkgs.macmon}/bin"}
           done
         '';
diff --git a/src/exo/shared/constants.py b/src/exo/shared/constants.py
index b09d6b2d..b385b5e8 100644
--- a/src/exo/shared/constants.py
+++ b/src/exo/shared/constants.py
@@ -39,7 +39,7 @@ RESOURCES_DIR = (
 )
 _DASHBOARD_DIR_ENV = os.environ.get("EXO_DASHBOARD_DIR", None)
 DASHBOARD_DIR = (
-    find_dashboard() if _RESOURCES_DIR_ENV is None else Path.home() / _RESOURCES_DIR_ENV
+    find_dashboard() if _DASHBOARD_DIR_ENV is None else Path.home() / _DASHBOARD_DIR_ENV
 )
 
 # Log files (data/logs or cache)

← 41ed7afb feat: add model picker modal with grouped models and HF Hub  ·  back to Exo  ·  Ciaran/parallel cfg (#1361) 6177550c →