about summary refs log tree commit diff
path: root/machines/aszlig
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2018-02-04 03:39:15 +0100
committeraszlig <aszlig@nix.build>2018-02-04 03:40:36 +0100
commit986924876902de0a481469c0d95ee202ab781d59 (patch)
tree2089e53003d45de2e52dc7b8e11696d267d7f660 /machines/aszlig
parentdc827486365b3e2d47c32ea5b11f7f539fd621b0 (diff)
machines/aszlig: Use zstd compression for btrfs
I've been using this for a while and got better results than zlib and
lzo, so let's actually use this for all my machines.

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'machines/aszlig')
-rw-r--r--machines/aszlig/dnyarri.nix2
-rw-r--r--machines/aszlig/managed/brawndo.nix2
-rw-r--r--machines/aszlig/managed/tyree.nix2
-rw-r--r--machines/aszlig/tishtushi.nix4
4 files changed, 5 insertions, 5 deletions
diff --git a/machines/aszlig/dnyarri.nix b/machines/aszlig/dnyarri.nix
index a5e32179..99e18e6f 100644
--- a/machines/aszlig/dnyarri.nix
+++ b/machines/aszlig/dnyarri.nix
@@ -90,7 +90,7 @@ in {
     "/" = {
       label = "dnyarri-root";
       fsType = "btrfs";
-      options = [ "autodefrag" "space_cache" "compress=lzo" "noatime" ];
+      options = [ "autodefrag" "space_cache" "compress=zstd" "noatime" ];
     };
   };
 
diff --git a/machines/aszlig/managed/brawndo.nix b/machines/aszlig/managed/brawndo.nix
index ea6d26ce..b451f7fb 100644
--- a/machines/aszlig/managed/brawndo.nix
+++ b/machines/aszlig/managed/brawndo.nix
@@ -18,7 +18,7 @@ in {
   fileSystems."/" = {
     device = "/dev/disk/by-uuid/${rootUUID}";
     fsType = "btrfs";
-    options = [ "compress=zlib" "space_cache" "noatime" ];
+    options = [ "compress=zstd" "space_cache" "noatime" ];
   };
 
   fileSystems."/boot" = {
diff --git a/machines/aszlig/managed/tyree.nix b/machines/aszlig/managed/tyree.nix
index 3cc336d8..9d9ca3e2 100644
--- a/machines/aszlig/managed/tyree.nix
+++ b/machines/aszlig/managed/tyree.nix
@@ -14,7 +14,7 @@
   fileSystems."/".label = "tyree-root";
   fileSystems."/".fsType = "btrfs";
   fileSystems."/".options = [
-    "compress=lzo"
+    "compress=zstd"
     "discard"
     "noatime"
     "space_cache"
diff --git a/machines/aszlig/tishtushi.nix b/machines/aszlig/tishtushi.nix
index 9021471c..2481bbb8 100644
--- a/machines/aszlig/tishtushi.nix
+++ b/machines/aszlig/tishtushi.nix
@@ -23,13 +23,13 @@ in {
   fileSystems."/" = {
     device = "/dev/disk/by-uuid/${rootUUID}";
     fsType = "btrfs";
-    options = [ "space_cache" "compress=zlib" "noatime" ];
+    options = [ "space_cache" "compress=zstd" "noatime" ];
   };
 
   fileSystems."/nix/store" = {
     device = "/dev/disk/by-uuid/${storeUUID}";
     fsType = "btrfs";
-    options = [ "ssd" "compress-force=zlib" "noatime" ];
+    options = [ "ssd" "discard" "compress=zstd" "noatime" ];
   };
 
   swapDevices = lib.singleton {