From 0ed22a1988989434e8a4297fbb19a7c6b73aa0ca Mon Sep 17 00:00:00 2001 From: NullBite Date: Wed, 28 Feb 2024 11:28:25 -0500 Subject: [PATCH] nullbox: compress all btrfs mounts --- hosts/nullbox/configuration.nix | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/hosts/nullbox/configuration.nix b/hosts/nullbox/configuration.nix index 52badde..cd47845 100644 --- a/hosts/nullbox/configuration.nix +++ b/hosts/nullbox/configuration.nix @@ -14,10 +14,21 @@ config = { - fileSystems."/ntfs" = { - fsType = "ntfs-3g"; - device = "/dev/disk/by-uuid/6AC23F0FC23EDF4F"; - }; + fileSystems = lib.mkMerge [ + { + "/ntfs" = { + fsType = "ntfs-3g"; + device = "/dev/disk/by-uuid/6AC23F0FC23EDF4F"; + }; + "/.btrfsroot" = { + options = [ "subvol=/" ]; + }; + } + + (lib.genAttrs [ "/.btrfsroot" "/" "/home" ] ( fs: { + options = [ "compress=zstd" ]; + })) + ]; # nixfiles nixfiles = {