From 65f9c45ae10c45707283578549c61ed00faae02c Mon Sep 17 00:00:00 2001 From: LeonSGP43 Date: Sat, 23 May 2026 21:03:38 +0800 Subject: [PATCH] fix(nix): ship managed fal backend in sealed package --- nix/hermes-agent.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nix/hermes-agent.nix b/nix/hermes-agent.nix index f373c25bcda7..224354da9097 100644 --- a/nix/hermes-agent.nix +++ b/nix/hermes-agent.nix @@ -36,9 +36,14 @@ }: let nodejs = nodejs_22; + # The sealed Nix runtime lives in the store, so first-use lazy installs + # cannot repair missing Python backends there. Ship the managed FAL + # backend in the default package so `hermes --tui` image generation works + # out of the box on the documented Nix install path. + nixRuntimeDependencyGroups = [ "fal" ]; hermesVenv = callPackage ./python.nix { inherit uv2nix pyproject-nix pyproject-build-systems; - dependency-groups = [ "all" ] ++ extraDependencyGroups; + dependency-groups = [ "all" ] ++ nixRuntimeDependencyGroups ++ extraDependencyGroups; }; hermesNpmLib = callPackage ./lib.nix {