mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-12 08:00:05 +01:00
46 lines
950 B
Nix
46 lines
950 B
Nix
{
|
|
type = "devices";
|
|
content = {
|
|
vdb = {
|
|
type = "zfs";
|
|
pool = "zroot";
|
|
};
|
|
vdc = {
|
|
type = "zfs";
|
|
pool = "zroot";
|
|
};
|
|
zroot = {
|
|
type = "zpool";
|
|
mode = "mirror";
|
|
rootFsOptions = {
|
|
compression = "lz4";
|
|
"com.sun:auto-snapshot" = "false";
|
|
};
|
|
datasets = [
|
|
{
|
|
type = "zfs_filesystem";
|
|
name = "zfs_fs";
|
|
mountpoint = "/zfs_fs";
|
|
options."com.sun:auto-snapshot" = "true";
|
|
}
|
|
{
|
|
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";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|
|
|