nix-config/hosts/common/optional/btrfs.nix

30 lines
839 B
Nix
Raw Normal View History

2023-09-22 17:06:18 +00:00
{ lib, config, ... }:
{
fileSystems."/" =
{ device = "/dev/disk/by-uuid/bf75af76-49b0-41fa-a4e5-9a52a6a0a667";
fsType = "btrfs";
options = [ "subvol=root" "compress=zstd" ];
};
fileSystems."/nix" =
{ device = "/dev/disk/by-uuid/bf75af76-49b0-41fa-a4e5-9a52a6a0a667";
fsType = "btrfs";
options = [ "subvol=nix" "noatime" "compress=zstd" ];
};
fileSystems."/persist" =
{ device = "/dev/disk/by-uuid/bf75af76-49b0-41fa-a4e5-9a52a6a0a667";
fsType = "btrfs";
options = [ "subvol=persist" "noatime" "compression=zstd" ];
2023-09-22 17:25:33 +00:00
neededForBoot = true;
2023-09-22 17:06:18 +00:00
};
fileSystems."/var/logs" =
{ device = "/dev/disk/by-uuid/bf75af76-49b0-41fa-a4e5-9a52a6a0a667";
fsType = "btrfs";
options = [ "subvol=logs" "noatime" "compress=zstd" ];
neededForBoot = true;
};
}