From 0975f7be18b858a51595d0667f93238da4f14d8b Mon Sep 17 00:00:00 2001 From: NullBite Date: Thu, 15 Feb 2024 13:55:21 +0100 Subject: [PATCH] slab: enable compression on btrfs partitions --- hosts/slab/configuration.nix | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/hosts/slab/configuration.nix b/hosts/slab/configuration.nix index 020d213..e54912a 100644 --- a/hosts/slab/configuration.nix +++ b/hosts/slab/configuration.nix @@ -8,10 +8,21 @@ { # nix.settings.experimental-features = ["nix-command" "flakes" ]; - fileSystems."/ntfs" = { - fsType = "ntfs-3g"; - device = "/dev/disk/by-uuid/028A49020517BEA9"; - }; + fileSystems = lib.mkMerge [ + { + "/ntfs" = { + fsType = "ntfs-3g"; + device = "/dev/disk/by-uuid/028A49020517BEA9"; + }; + "/.btrfsroot" = { + options = [ "subvol=/" ]; + }; + } + + (lib.genAttrs [ "/" "/home" "/nix" ] ( fs: { + options = [ "compress=zstd" ]; + })) + ]; imports = [ # Include the results of the hardware scan.