mirror of
https://github.com/nix-community/disko
synced 2024-11-10 14:24:27 +00:00
42 lines
798 B
Nix
42 lines
798 B
Nix
{
|
|
type = "devices";
|
|
content = {
|
|
vdb = {
|
|
type = "table";
|
|
format = "gpt";
|
|
partitions = [
|
|
{
|
|
type = "partition";
|
|
# leave space for the grub aka BIOS boot
|
|
start = "0%";
|
|
end = "100%";
|
|
part-type = "primary";
|
|
bootable = true;
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
vdc = {
|
|
type = "zfs";
|
|
pool = "zroot";
|
|
};
|
|
zroot = {
|
|
type = "zpool";
|
|
mountpoint = "/";
|
|
|
|
datasets = [
|
|
{
|
|
type = "zfs_filesystem";
|
|
name = "zfs_fs";
|
|
mountpoint = "/zfs_fs";
|
|
options."com.sun:auto-snapshot" = "true";
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|
|
|