nixos/podman: Add zfs to wrapper if enabled

This commit is contained in:
Zhaofeng Li 2022-03-24 20:09:36 -07:00 committed by zowoq
parent 5b6e4187ad
commit e42f06f93f

View file

@ -6,7 +6,10 @@ let
inherit (lib) mkOption types;
podmanPackage = (pkgs.podman.override { inherit (cfg) extraPackages; });
podmanPackage = (pkgs.podman.override {
extraPackages = cfg.extraPackages
++ lib.optional (builtins.elem "zfs" config.boot.supportedFilesystems) config.boot.zfs.package;
});
# Provides a fake "docker" binary mapping to podman
dockerCompat = pkgs.runCommand "${podmanPackage.pname}-docker-compat-${podmanPackage.version}" {