This commit is contained in:
2026-01-14 15:28:25 -06:00
parent 46f546a0e0
commit be4f0c5e6b
5 changed files with 28 additions and 23 deletions

View File

@@ -8,6 +8,10 @@
};
config = lib.mkIf config.sysconfig.virtualization.ollama.enable {
networking = {
nat.internalInterfaces = [ "ve-ollama" ];
};
containers.ollama = {
@@ -37,6 +41,11 @@
hostPath = "/dev/nvidia-uvm-tools";
isReadOnly = false;
};
"/dev/dri/renderD128" = {
hostPath = "/dev/dri/renderD128";
isReadOnly = false;
};
};
allowedDevices = [
@@ -60,6 +69,11 @@
node = "/dev/nvidia-uvm-tools";
modifier = "rw";
}
{
node = "/dev/dri/renderD128";
modifier = "rw";
}
];
config = {