From 6b18d0accf43a0433d5947b370c9f98e168a5ed9 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 2 Oct 2024 15:43:59 -0600 Subject: [PATCH] [NixOS] Set cdi spec dirs --- nixos/k3s.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nixos/k3s.nix b/nixos/k3s.nix index 48c2c054..8d6fe3e5 100644 --- a/nixos/k3s.nix +++ b/nixos/k3s.nix @@ -22,6 +22,15 @@ in { enableDelete = true; enableGarbageCollect = true; }; + virtualisation.containerd = { + enable = true; + settings = { + plugins."io.containerd.grpc.v1.cri" = { + enable_cdi = true; + cdi_spec_dirs = [ "/var/run/cdi" ]; + }; + }; + }; services.k3s = { enable = true; clusterInit = cfg.serverAddr == "";