mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-19 18:44:13 +00:00
virtualisation/{docker,podman}: update nvidia-ctk warning
Warnings and descriptions for `virtualisation.docker.enableNvidia` and `virtualisation.podman.enableNvidia` point erroneously to set `virtualisation.containers.cdi.dynamic.nvidia.enable`. This NixOS option has been deprecated and the recommended NixOS option is `hardware.nvidia-container-toolkit.enable`.
This commit is contained in:
parent
1105437858
commit
3d2a21eddf
@ -69,7 +69,7 @@ in
|
|||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
description = ''
|
description = ''
|
||||||
**Deprecated**, please use virtualisation.containers.cdi.dynamic.nvidia.enable instead.
|
**Deprecated**, please use hardware.nvidia-container-toolkit.enable instead.
|
||||||
|
|
||||||
Enable nvidia-docker wrapper, supporting NVIDIA GPUs inside docker containers.
|
Enable nvidia-docker wrapper, supporting NVIDIA GPUs inside docker containers.
|
||||||
'';
|
'';
|
||||||
@ -186,7 +186,7 @@ in
|
|||||||
# wrappers.
|
# wrappers.
|
||||||
warnings = lib.optionals (cfg.enableNvidia && (lib.strings.versionAtLeast cfg.package.version "25")) [
|
warnings = lib.optionals (cfg.enableNvidia && (lib.strings.versionAtLeast cfg.package.version "25")) [
|
||||||
''
|
''
|
||||||
You have set virtualisation.docker.enableNvidia. This option is deprecated, please set virtualisation.containers.cdi.dynamic.nvidia.enable instead.
|
You have set virtualisation.docker.enableNvidia. This option is deprecated, please set hardware.nvidia-container-toolkit.enable instead.
|
||||||
''
|
''
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ in
|
|||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
description = ''
|
description = ''
|
||||||
**Deprecated**, please use virtualisation.containers.cdi.dynamic.nvidia.enable instead.
|
**Deprecated**, please use hardware.nvidia-container-toolkit.enable instead.
|
||||||
|
|
||||||
Enable use of NVidia GPUs from within podman containers.
|
Enable use of NVidia GPUs from within podman containers.
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user