From 073c854660828d253e8e99a66fa56e2045fad4e7 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Mon, 28 Aug 2023 13:11:29 +0200 Subject: [PATCH] BTRFS compression --- yodaTab/hardware-configuration.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yodaTab/hardware-configuration.nix b/yodaTab/hardware-configuration.nix index b311e6d..9a387c0 100644 --- a/yodaTab/hardware-configuration.nix +++ b/yodaTab/hardware-configuration.nix @@ -16,7 +16,9 @@ fileSystems."/" = { device = "/dev/disk/by-uuid/f87e6b3c-12f2-4fda-92b3-06b07bdad58f"; fsType = "btrfs"; - options = [ "subvol=@" ]; + # Manually enable compression + # https://nixos.wiki/wiki/Btrfs#Compression + options = [ "subvol=@" "compress=zstd" ]; }; boot.initrd.luks.devices."luks-ba8b94d0-7f70-496a-ad87-eadc5e852aad".device = "/dev/disk/by-uuid/ba8b94d0-7f70-496a-ad87-eadc5e852aad";