From e4f975765f24465d13b4d3079f5007a4bf507de8 Mon Sep 17 00:00:00 2001 From: Svein Ove Aas Date: Fri, 27 Sep 2019 18:24:23 +0100 Subject: [PATCH] nixos/zfs: Enable trim by default --- nixos/modules/tasks/filesystems/zfs.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nixos/modules/tasks/filesystems/zfs.nix b/nixos/modules/tasks/filesystems/zfs.nix index 2ed8c5aa292..cfdc0a31020 100644 --- a/nixos/modules/tasks/filesystems/zfs.nix +++ b/nixos/modules/tasks/filesystems/zfs.nix @@ -268,7 +268,12 @@ in }; services.zfs.trim = { - enable = mkEnableOption "Enables periodic TRIM on all ZFS pools."; + enable = mkOption { + description = "Whether to enable periodic TRIM on all ZFS pools."; + default = true; + example = false; + type = types.bool; + }; interval = mkOption { default = "weekly";