From 1381cedeb28c14e697e1e62440499f04bdb52eb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 18 Feb 2023 23:49:05 +0100 Subject: [PATCH] zfs: enable trim --- modules/zfs.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/zfs.nix b/modules/zfs.nix index e643da6..d750124 100644 --- a/modules/zfs.nix +++ b/modules/zfs.nix @@ -21,7 +21,10 @@ in zfs.forceImportRoot = false; }; - services.zfs.autoScrub.enable = true; + services.zfs = { + autoScrub.enable = true; + trim.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