22
0
mirror of https://github.com/SuperSandro2000/nixos-modules.git synced 2024-06-13 19:45:48 +02:00

zfs: fix podman if recommended settings are enabled

This commit is contained in:
Sandro - 2023-01-11 02:44:04 +01:00
parent b0884b6bd5
commit e387e10335
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -1,4 +1,4 @@
{ config, lib, libS, ... }:
{ config, lib, libS, options, pkgs, ... }:
let
cfg = config.boot.zfs;
@ -15,5 +15,12 @@ in
};
services.zfs.autoScrub.enable = true;
virtualisation = {
containers.storage.settings = lib.recursiveUpdate options.virtualisation.containers.storage.settings.default {
# fixes: Error: 'overlay' is not supported over zfs, a mount_program is required: backing file system is unsupported for this graph driver
storage.options.mount_program = "${pkgs.fuse-overlayfs}/bin/fuse-overlayfs";
};
};
};
}