disko/example/zfs-over-legacy.nix

48 lines
880 B
Nix
Raw Normal View History

2022-08-26 10:50:52 +00:00
{
disk = {
2022-08-26 10:50:52 +00:00
vdb = {
type = "disk";
device = "/dev/vdb";
content = {
type = "table";
format = "gpt";
partitions = [
{
type = "partition";
start = "0%";
end = "100%";
name = "primary";
bootable = true;
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
}
];
};
2022-08-26 10:50:52 +00:00
};
vdc = {
type = "disk";
device = "/dev/vdc";
content = {
type = "zfs";
pool = "zroot";
};
2022-08-26 10:50:52 +00:00
};
};
zpool = {
2022-08-26 10:50:52 +00:00
zroot = {
type = "zpool";
datasets = {
zfs_fs = {
zfs_type = "filesystem";
2022-08-26 10:50:52 +00:00
mountpoint = "/zfs_fs";
options."com.sun:auto-snapshot" = "true";
};
};
2022-08-26 10:50:52 +00:00
};
};
}