From b6fbbe768db173f1126c2abb3d84d6d423ffe4da Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Thu, 23 Sep 2021 00:18:58 +0200 Subject: [PATCH] nixos/containerd: use v2 settings by default Kubernetes is using v2 setting names and is the only module in Nixpkgs using containerd, so it makes sense to upgrade. --- nixos/modules/virtualisation/containerd.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nixos/modules/virtualisation/containerd.nix b/nixos/modules/virtualisation/containerd.nix index 43cb6273f253..898a66e7b04e 100644 --- a/nixos/modules/virtualisation/containerd.nix +++ b/nixos/modules/virtualisation/containerd.nix @@ -53,8 +53,11 @@ in virtualisation.containerd = { args.config = toString containerdConfigChecked; settings = { - plugins.cri.containerd.snapshotter = lib.mkIf config.boot.zfs.enabled "zfs"; - plugins.cri.cni.bin_dir = lib.mkDefault "${pkgs.cni-plugins}/bin"; + plugins."io.containerd.grpc.v1.cri" = { + containerd.snapshotter = + lib.mkIf config.boot.zfs.enabled (lib.mkOptionDefault "zfs"); + cni.bin_dir = lib.mkOptionDefault "${pkgs.cni-plugins}/bin"; + }; }; };