nixpkgs: use symlinkJoin to share container runtime config for runtimes that support nvidia GPUs
This commit is contained in:
parent
e94a0228c5
commit
ca2aa77d7b
@ -15415,7 +15415,32 @@ in
|
||||
|
||||
nv-codec-headers = callPackage ../development/libraries/nv-codec-headers { };
|
||||
|
||||
nvidia-docker = callPackage ../applications/virtualization/nvidia-docker { };
|
||||
mkNvidiaContainerPkg = { name, containerRuntimePath, configTemplate, additionalPaths ? [] }:
|
||||
symlinkJoin {
|
||||
name = "nvidia-containers-${name}";
|
||||
paths = [
|
||||
(callPackage ../applications/virtualization/libnvidia-container { })
|
||||
(callPackage ../applications/virtualization/nvidia-container-runtime {
|
||||
inherit containerRuntimePath configTemplate;
|
||||
})
|
||||
(callPackage ../applications/virtualization/nvidia-container-toolkit {
|
||||
inherit containerRuntimePath configTemplate;
|
||||
})
|
||||
] ++ additionalPaths;
|
||||
};
|
||||
|
||||
nvidia-docker = mkNvidiaContainerPkg {
|
||||
name = "docker";
|
||||
containerRuntimePath = "${docker}/libexec/docker/runc";
|
||||
configTemplate = ../applications/virtualization/nvidia-docker/config.toml;
|
||||
additionalPaths = [ (callPackage ../applications/virtualization/nvidia-docker { }) ];
|
||||
};
|
||||
|
||||
nvidia-podman = mkNvidiaContainerPkg {
|
||||
name = "podman";
|
||||
containerRuntimePath = "${runc}/bin/runc";
|
||||
configTemplate = ../applications/virtualization/nvidia-podman/config.toml;
|
||||
};
|
||||
|
||||
nvidia-texture-tools = callPackage ../development/libraries/nvidia-texture-tools { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user