nixos-config/2configs/fs/disko/single-disk-bcachefs.nix

40 lines
937 B
Nix
Raw Normal View History

2023-06-12 21:05:04 +02:00
{ disks ? [ "/dev/sda" ], ... }: {
2023-06-14 21:37:13 +02:00
boot.supportedFilesystems = [ "bcachefs" ];
2023-06-12 21:05:04 +02:00
disko.devices = {
disk = {
vdb = {
device = builtins.elemAt disks 0;
type = "disk";
content = {
type = "table";
format = "gpt";
partitions = [
{
name = "ESP";
start = "1MiB";
end = "500MiB";
bootable = true;
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
}
{
name = "root";
start = "500MiB";
end = "100%";
part-type = "primary";
content = {
type = "filesystem";
2023-06-14 21:37:13 +02:00
format = "btrfs";
2023-06-12 21:05:04 +02:00
mountpoint = "/";
};
}
];
};
};
};
};
}