From 851a9cecacd140f20a7b7565b7e394f9607b6328 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Thu, 15 Aug 2024 16:24:09 +0200 Subject: [PATCH] fix(deprecated) : You have set virtualisation.docker.enableNvidia. This option is deprecated, please set hardware.nvidia-container-toolkit.enable instead --- modules/system/hardware/nvidia/default.nix | 2 ++ modules/system/server/docker/default.nix | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/system/hardware/nvidia/default.nix b/modules/system/hardware/nvidia/default.nix index d96ea8d..f58b698 100644 --- a/modules/system/hardware/nvidia/default.nix +++ b/modules/system/hardware/nvidia/default.nix @@ -20,6 +20,8 @@ in enable32Bit = true; }; + nvidia-container-toolkit.enable = true; + nvidia = { # Modesetting is required. modesetting.enable = true; diff --git a/modules/system/server/docker/default.nix b/modules/system/server/docker/default.nix index 317777b..dfdd13b 100644 --- a/modules/system/server/docker/default.nix +++ b/modules/system/server/docker/default.nix @@ -13,7 +13,6 @@ in config = mkIf cfg.enable { virtualisation.docker = { enable = true; - enableNvidia = config.modules.system.hardware.nvidia.enable; }; users.users.florian.extraGroups = [ "docker" ];