anduril/jetpack-nixos
NixOS module for NVIDIA Jetson devices
What it solves
This project lets you run NixOS — a Linux distribution built from declarative configuration files — on NVIDIA's Jetson embedded computers (developer kits like Orin and Xavier). Normally these devices run NVIDIA's proprietary JetPack software stack, which is hard to configure, reproduce, and update. This project packages all the JetPack components (firmware, kernel, GPU drivers, CUDA, multimedia libraries) as NixOS modules, so you can define your whole system in one place and rebuild it reproducibly.
How it works
- It packages NVIDIA's JetPack SDK pieces for NixOS: platform firmware flashing scripts, the Linux kernel (including open-source drivers like nvgpu), an EDK2-based UEFI firmware, ARM Trusted Firmware / OP-TEE, plus packages for GPU computing (CUDA, CuDNN, TensorRT), multimedia (hardware-accelerated encoding/decoding via V4L2 and GStreamer), graphics (Wayland, GBM, EGL, Vulkan), and power/fan control (nvpmodel, nvfancontrol).
- To get started, you flash UEFI firmware onto the device (optional if already recent), build a customized installer ISO, boot from a USB drive, and install NixOS following the standard UEFI installation steps.
- Configuration is done through NixOS options like
hardware.nvidia-jetpack.enable,hardware.nvidia-jetpack.som(which device), andhardware.nvidia-jetpack.carrierBoard. The JetPack major version can be selected withhardware.nvidia-jetpack.majorVersion(defaults to the latest supported for the board). - Firmware can be updated from the device itself using the UEFI Capsule update mechanism, with optional signing-key authentication to ensure only trusted updates are applied.
- OCI containers (Docker and Podman) can access NVIDIA hardware by enabling the container toolkit and passing a CDI device (e.g.
--device=nvidia.com/gpu=all). - CUDA support is configured automatically when the module is enabled; you can also import Nixpkgs manually with specific CUDA capabilities (e.g.
"7.2"for Xavier,"8.7"for Orin).
Who it's for
Developers and system administrators who want to run NixOS on NVIDIA Jetson developer kits (Thor AGX, Orin AGX/NX/Nano, Xavier AGX/NX) — especially those doing GPU-accelerated computing, machine learning, or multimedia work on embedded hardware and who value reproducible, declarative system configuration.
Highlights
- Supports JetPack 5, 6, and 7 across Thor, Orin, and Xavier developer kits (Nano, TX2, and TX1 are not supported)
- Includes UEFI firmware flashing scripts and a customized installer ISO for a clean NixOS install
- Packages CUDA, CuDNN, TensorRT, hardware-accelerated video codecs, and Vulkan/EGL graphics
- Firmware can be updated over-the-air from the device via UEFI Capsule updates, with optional signing-key authentication
- Docker and Podman containers can access NVIDIA hardware through CDI device passthrough
- CUDA support is auto-configured for Jetson devices when the module is enabled
- Kernel package sets (vendor and mainline) with extension points for custom device-tree patches
Related
- Project
- Dispatch
- Project
- Dispatch
- Project