Fully working Manim setup ⮺
Note that ManimCE is CPU based, and that's what is configured here, Binding with system GPU is provided but not usefull here
- nix provides standard tools python + uv
- uv manage python packages
- thanks to NixGLHost we can bridge system driver to nix setup
. ├── pyproject.toml └── shell.nix
As a prerequesite, you need to have
- nix package manager installed.
# This is the regular call to have a working environment
# use nix-shell rather than flake.nix to avoid full copy of the folder
nix-shell
uv sync
# This can take some times as it will download pytorch > 1GB of package
# then (optionally) check (and generate a sample video)
uv run manim checkhealth
# and you are doneNotes this is specific to my own homelab setup and can be safely removed
# enable nvidia GPU on homelab
export __NV_PRIME_RENDER_OFFLOAD=1
export __GLX_VENDOR_LIBRARY_NAME=nvidia
# this is specific to my setup (nfs shared)
# reposition uv cache on /home/yves/DEV/.uv_cache
# so uv can hardlink (on first uv call)
export UV_CACHE_DIR=/home/yves/DEV/.uv_cache