From b266526e05b20627b66677fb269f4e254be7d5ea Mon Sep 17 00:00:00 2001 From: Tristan Date: Thu, 13 Apr 2023 17:06:27 +0000 Subject: [PATCH] add compression and caching to btrfs (#1) see https://btrfs.readthedocs.io/en/latest/Administration.html#mount-options Co-authored-by: tristan Reviewed-on: https://git.tristans.cloud/tristan/nix/pulls/1 --- system/hardware-configuration.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/hardware-configuration.nix b/system/hardware-configuration.nix index 8f407a1..fd8c898 100644 --- a/system/hardware-configuration.nix +++ b/system/hardware-configuration.nix @@ -16,7 +16,7 @@ fileSystems."/" = { device = "/dev/disk/by-uuid/2dad5ed6-44cc-4d9d-9392-32afaa7b3909"; fsType = "btrfs"; - options = [ "subvol=@" ]; + options = [ "subvol=@" "compress=zstd" ]; }; boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/cc0617df-8cbf-4618-abbc-df64c96de151"; @@ -24,7 +24,7 @@ fileSystems."/home" = { device = "/dev/disk/by-uuid/2dad5ed6-44cc-4d9d-9392-32afaa7b3909"; fsType = "btrfs"; - options = [ "subvol=@home" ]; + options = [ "subvol=@home" "compress=zstd" ]; }; fileSystems."/boot" =