mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
nixos/cri-o: add aufs, devmapper, and zfs to storageDrivers
Update the storageDrivers option to align with the supported drivers, as listed here: https://github.com/containers/storage/blob/master/docs/containers-storage.conf.5.md#storage-table
This commit is contained in:
parent
d9d1f5627e
commit
7d03f1aa9f
1 changed files with 5 additions and 2 deletions
|
@ -4,7 +4,10 @@ with lib;
|
|||
let
|
||||
cfg = config.virtualisation.cri-o;
|
||||
|
||||
crioPackage = (pkgs.cri-o.override { inherit (cfg) extraPackages; });
|
||||
crioPackage = pkgs.cri-o.override {
|
||||
extraPackages = cfg.extraPackages
|
||||
++ lib.optional (builtins.elem "zfs" config.boot.supportedFilesystems) config.boot.zfs.package;
|
||||
};
|
||||
|
||||
in
|
||||
{
|
||||
|
@ -20,7 +23,7 @@ in
|
|||
enable = mkEnableOption "Container Runtime Interface for OCI (CRI-O)";
|
||||
|
||||
storageDriver = mkOption {
|
||||
type = types.enum [ "btrfs" "overlay" "vfs" ];
|
||||
type = types.enum [ "aufs" "btrfs" "devmapper" "overlay" "vfs" "zfs" ];
|
||||
default = "overlay";
|
||||
description = "Storage driver to be used";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue