[NixOS] Set cdi spec dirs

This commit is contained in:
Your Name 2024-10-02 15:43:59 -06:00
parent 9a764fc7c8
commit 6b18d0accf

View File

@ -22,6 +22,15 @@ in {
enableDelete = true; enableDelete = true;
enableGarbageCollect = 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 = { services.k3s = {
enable = true; enable = true;
clusterInit = cfg.serverAddr == ""; clusterInit = cfg.serverAddr == "";