about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2019-09-28 10:07:12 +0100
committerGitHub <noreply@github.com>2019-09-28 10:07:12 +0100
commit5a73cd4f680160e14896acf0c587839a2683e572 (patch)
tree9e31668dc3be8acc3bae663bda321f03d948bba2
parent3ed9892552a32baecf32404936e0020eaa25338e (diff)
parente4f975765f24465d13b4d3079f5007a4bf507de8 (diff)
downloadnixlib-5a73cd4f680160e14896acf0c587839a2683e572.tar
nixlib-5a73cd4f680160e14896acf0c587839a2683e572.tar.gz
nixlib-5a73cd4f680160e14896acf0c587839a2683e572.tar.bz2
nixlib-5a73cd4f680160e14896acf0c587839a2683e572.tar.lz
nixlib-5a73cd4f680160e14896acf0c587839a2683e572.tar.xz
nixlib-5a73cd4f680160e14896acf0c587839a2683e572.tar.zst
nixlib-5a73cd4f680160e14896acf0c587839a2683e572.zip
nixos/zfs: Enable trim by default (#69672)
nixos/zfs: Enable trim by default
-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";