From 7c48e6052a499170b5b3452dfe86a7748135c542 Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Tue, 13 Oct 2020 15:52:16 +0200 Subject: [PATCH] Use zfs storage driver for docker when using zfs --- modules/zfs.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/zfs.nix b/modules/zfs.nix index baa0b0e5..8c7e6912 100644 --- a/modules/zfs.nix +++ b/modules/zfs.nix @@ -41,6 +41,8 @@ in ''; }; + config.virtualisation.docker.storageDriver = lib.mkIf config.custom.zfs.enable "zfs"; + config.services.zfs.autoScrub.enable = config.custom.zfs.enable; config.services.zfs.trim.enable = config.custom.zfs.enable;