From d4f01808ec681b8c4a43547c17b63faf9c6b805e Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Fri, 18 Oct 2024 19:34:04 +0200 Subject: [PATCH] nixos/ephemeral: Enable automatic defragmentation --- nixos/module/ephemeral.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/module/ephemeral.nix b/nixos/module/ephemeral.nix index d2bc74d..2d74fd8 100644 --- a/nixos/module/ephemeral.nix +++ b/nixos/module/ephemeral.nix @@ -118,7 +118,7 @@ let options = [ "nodev" "noexec" "nosuid" ]; }; } |> lib.mapAttrs (name: subvol: subvol // { - extraOptions = [ "noatime" "compress=zstd" ]; + extraOptions = [ "noatime" "autodefrag" "compress=zstd" ]; }); in { options = {