summaryrefslogtreecommitdiffstats
path: root/nixos/modules/tasks
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 /nixos/modules/tasks
parent3ed9892552a32baecf32404936e0020eaa25338e (diff)
parente4f975765f24465d13b4d3079f5007a4bf507de8 (diff)
nixos/zfs: Enable trim by default (#69672)
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";