slab: enable compression on btrfs partitions

This commit is contained in:
NullBite 2024-02-15 13:55:21 +01:00
parent 8e3ce58551
commit 0975f7be18
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A

View File

@ -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.