summaryrefslogtreecommitdiffstats
path: root/nixos/modules/tasks
diff options
context:
space:
mode:
authorSvein Ove Aas <sveina@gmail.com>2019-09-27 18:24:23 +0100
committerSvein Ove Aas <sveina@gmail.com>2019-09-27 18:35:03 +0100
commite4f975765f24465d13b4d3079f5007a4bf507de8 (patch)
tree3b8db955cffbf8596b4cfa57b0b13167d6c5d392 /nixos/modules/tasks
parentf6a894475cefa3d6bad81a73bb79d73a22dc008e (diff)
nixos/zfs: Enable trim by default
Diffstat (limited to 'nixos/modules/tasks')
-rw-r--r--nixos/modules/tasks/filesystems/zfs.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/nixos/modules/tasks/filesystems/zfs.nix b/nixos/modules/tasks/filesystems/zfs.nix
index 2ed8c5aa2927..cfdc0a31020b 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";