about summary refs log tree commit diff stats
path: root/modules/by-name/di
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-12-15 18:02:43 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-12-15 18:02:43 +0100
commitfd7293eb26bd8302da218eaeaf2a57c1d1bf0ef0 (patch)
tree8ae8405e1be2bc3268910ffc7edc34a47a2dfd9f /modules/by-name/di
parentscripts/why-depends: Also work without a version argument (diff)
downloadnixos-config-fd7293eb26bd8302da218eaeaf2a57c1d1bf0ef0.zip
modules/disk: Significantly tune down compression
Btrfs consistently locks up my whole system.
Diffstat (limited to '')
-rw-r--r--modules/by-name/di/disks/module.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/by-name/di/disks/module.nix b/modules/by-name/di/disks/module.nix
index 7ec5c2d4..a1515bcb 100644
--- a/modules/by-name/di/disks/module.nix
+++ b/modules/by-name/di/disks/module.nix
@@ -17,7 +17,8 @@
   # FIXME: The iso redeploy requires a bigger efi partition  <2024-05-12>
   cfg = config.soispha.disks;
   defaultMountOptions = [
-    "compress-force=zstd:15" # This saves disk space, at a performance cost
+    "space_cache" # Use some disk space for cache
+    "compress=zstd:3" # This saves disk space, at a performance cost
     "noatime" # should have some performance upsides, and I don't use it anyways
     "lazytime" # make time changes in memory
   ];
@@ -86,7 +87,10 @@ in {
                       };
                       "swap" = {
                         mountpoint = "/swap";
-                        mountOptions = defaultMountOptions;
+                        mountOptions = [
+                          "noatime" # should have some performance upsides, and I don't use it anyways
+                          "lazytime" # make time changes in memory
+                        ];
                       };
                     };
                   };