feat: Add nvidia compatibility option for LXC devices
All checks were successful
CI / Format Check (push) Successful in 2s
CI / Flake Check (push) Successful in 1m46s
CI / Evaluate Key Configurations (nix-builder) (push) Successful in 14s
CI / Evaluate Key Configurations (nix-desktop1) (push) Successful in 8s
CI / Evaluate Key Configurations (nix-laptop1) (push) Successful in 9s
CI / Evaluate Artifacts (installer-iso-nix-laptop1) (push) Successful in 21s
CI / Evaluate Artifacts (lxc-nix-builder) (push) Successful in 14s
CI / Build and Publish Documentation (push) Successful in 12s

This commit is contained in:
UGA Innovation Factory
2026-02-16 15:51:19 -05:00
parent 950be4b8ce
commit 7e43285278
5 changed files with 219 additions and 0 deletions

View File

@@ -343,6 +343,34 @@ nix-lxc = {
};
```
### Proxmox LXC with NVIDIA (Dual P40 Example)
```nix
nix-lxc = {
devices = {
"gpu-builder" = {
athenix.host.useHostPrefix = false;
athenix.sw.type = "headless";
# Optional NVIDIA containerization support
athenix.hw.nix-lxc.cuda = {
enable = true;
# Expose both GPUs (index-based)
visibleDevices = [ "0" "1" ];
# Select a compatible driver branch for older cards when needed
driver.channel = "legacy_470";
driverCapabilities = [ "compute" "utility" ];
};
};
};
};
```
Notes:
- Proxmox host must provide `/dev/nvidia*` devices to the container.
- Use `driver.channel = "dc_550"` (default) for newer datacenter cards when supported.
- Use `driver.package` only when you need an explicit package override.
### WSL Instances
```nix