Merge pull request #213036 from SuperSandro2000/cri-o/update_storagedrivers

nixos/cri-o: add aufs, devmapper, and zfs to storageDrivers

authored by

adisbladis and committed by
GitHub
4ab1021a 25e21b34

+7 -2
+5 -2
nixos/modules/virtualisation/cri-o.nix
··· 4 let 5 cfg = config.virtualisation.cri-o; 6 7 - crioPackage = (pkgs.cri-o.override { inherit (cfg) extraPackages; }); 8 9 format = pkgs.formats.toml { }; 10 ··· 19 enable = mkEnableOption (lib.mdDoc "Container Runtime Interface for OCI (CRI-O)"); 20 21 storageDriver = mkOption { 22 - type = types.enum [ "btrfs" "overlay" "vfs" ]; 23 default = "overlay"; 24 description = lib.mdDoc "Storage driver to be used"; 25 };
··· 4 let 5 cfg = config.virtualisation.cri-o; 6 7 + crioPackage = pkgs.cri-o.override { 8 + extraPackages = cfg.extraPackages 9 + ++ lib.optional (builtins.elem "zfs" config.boot.supportedFilesystems) config.boot.zfs.package; 10 + }; 11 12 format = pkgs.formats.toml { }; 13 ··· 22 enable = mkEnableOption (lib.mdDoc "Container Runtime Interface for OCI (CRI-O)"); 23 24 storageDriver = mkOption { 25 + type = types.enum [ "aufs" "btrfs" "devmapper" "overlay" "vfs" "zfs" ]; 26 default = "overlay"; 27 description = lib.mdDoc "Storage driver to be used"; 28 };
+2
pkgs/applications/virtualization/cri-o/wrapper.nix
··· 4 , lib 5 , extraPackages ? [] 6 , runc # Default container runtime 7 , crun # Container runtime (default with cgroups v2 for podman/buildah) 8 , conmon # Container runtime monitor 9 , util-linux # nsenter ··· 13 let 14 binPath = lib.makeBinPath ([ 15 runc 16 crun 17 conmon 18 util-linux
··· 4 , lib 5 , extraPackages ? [] 6 , runc # Default container runtime 7 + , conntrack-tools 8 , crun # Container runtime (default with cgroups v2 for podman/buildah) 9 , conmon # Container runtime monitor 10 , util-linux # nsenter ··· 14 let 15 binPath = lib.makeBinPath ([ 16 runc 17 + conntrack-tools 18 crun 19 conmon 20 util-linux