From 77fbd667072d29bd5c7cc8036dbe5120853b8923 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Fri, 26 Apr 2024 15:40:12 +0200 Subject: [PATCH] podman: They moved the nvidia option again... --- modules/podman/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/podman/default.nix b/modules/podman/default.nix index a560228..ef7d9cf 100644 --- a/modules/podman/default.nix +++ b/modules/podman/default.nix @@ -42,7 +42,6 @@ in virtualisation.containers = { enable = true; - cdi.dynamic.nvidia.enable = cfg.enableNvidia; registries = { insecure = cfg.insecureRegistries; }; @@ -59,6 +58,8 @@ in # }; }; + hardware.nvidia-container-toolkit.enable = cfg.enableNvidia; + users.extraUsers.${config.eboskma.var.mainUser}.extraGroups = [ "podman" ]; # Make DNS work in containers