nixos/open-webui: allow service to access gpu
This commit is contained in:
parent
4fb8086fbd
commit
528e669ff3
@ -132,6 +132,21 @@ in
|
|||||||
"@system-service"
|
"@system-service"
|
||||||
"~@privileged"
|
"~@privileged"
|
||||||
];
|
];
|
||||||
|
SupplementaryGroups = [ "render" ]; # for rocm to access /dev/dri/renderD* devices
|
||||||
|
DeviceAllow = [
|
||||||
|
# CUDA
|
||||||
|
# https://docs.nvidia.com/dgx/pdf/dgx-os-5-user-guide.pdf
|
||||||
|
"char-nvidiactl"
|
||||||
|
"char-nvidia-caps"
|
||||||
|
"char-nvidia-frontend"
|
||||||
|
"char-nvidia-uvm"
|
||||||
|
# ROCm
|
||||||
|
"char-drm"
|
||||||
|
"char-fb"
|
||||||
|
"char-kfd"
|
||||||
|
# WSL (Windows Subsystem for Linux)
|
||||||
|
"/dev/dxg"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user