mirror of
https://github.com/nix-community/disko
synced 2024-11-10 14:24:27 +00:00
42 lines
793 B
Nix
42 lines
793 B
Nix
|
{
|
||
|
type = "devices";
|
||
|
content = {
|
||
|
vdb = {
|
||
|
type = "zfs";
|
||
|
pool = "zroot";
|
||
|
};
|
||
|
vdc = {
|
||
|
type = "zfs";
|
||
|
pool = "zroot";
|
||
|
};
|
||
|
zroot = {
|
||
|
type = "zpool";
|
||
|
mode = "mirror";
|
||
|
datasets = [
|
||
|
{
|
||
|
type = "zfs_filesystem";
|
||
|
name = "zfs_fs";
|
||
|
mountpoint = "/zfs_fs";
|
||
|
}
|
||
|
{
|
||
|
type = "zfs_filesystem";
|
||
|
name = "zfs_legacy_fs";
|
||
|
options.mountpoint = "legacy";
|
||
|
mountpoint = "/zfs_legacy_fs";
|
||
|
}
|
||
|
{
|
||
|
type = "zfs_volume";
|
||
|
name = "zfs_testvolume";
|
||
|
size = "10M";
|
||
|
content = {
|
||
|
type = "filesystem";
|
||
|
format = "ext4";
|
||
|
mountpoint = "/ext4onzfs";
|
||
|
};
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
}
|
||
|
|