nix-config/nixos/_mixins/filesystems/btrfs.nix

34 lines
844 B
Nix
Raw Normal View History

_:
2023-09-22 17:06:18 +00:00
{
fileSystems."/" =
{
device = "/dev/disk/by-uuid/bf75af76-49b0-41fa-a4e5-9a52a6a0a667";
2023-09-22 17:06:18 +00:00
fsType = "btrfs";
options = [ "subvol=root" "compress=zstd" ];
};
fileSystems."/nix" =
{
device = "/dev/disk/by-uuid/bf75af76-49b0-41fa-a4e5-9a52a6a0a667";
2023-09-22 17:06:18 +00:00
fsType = "btrfs";
options = [ "subvol=nix" "noatime" "compress=zstd" ];
};
fileSystems."/persist" =
{
device = "/dev/disk/by-uuid/bf75af76-49b0-41fa-a4e5-9a52a6a0a667";
2023-09-22 17:06:18 +00:00
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";
2023-09-22 17:06:18 +00:00
fsType = "btrfs";
options = [ "subvol=logs" "noatime" "compress=zstd" ];
neededForBoot = true;
};
}