mirror of
https://github.com/nix-community/disko.git
synced 2024-11-04 05:44:29 +03:00
110 lines
2.2 KiB
Nix
110 lines
2.2 KiB
Nix
{
|
|
disko.devices = {
|
|
disk = {
|
|
x = {
|
|
type = "disk";
|
|
device = "/dev/sdx";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
ESP = {
|
|
size = "64M";
|
|
type = "EF00";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
};
|
|
};
|
|
root = {
|
|
size = "100%";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
y = {
|
|
type = "disk";
|
|
device = "/dev/sdy";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
zfs = {
|
|
size = "100%";
|
|
content = {
|
|
type = "zfs";
|
|
pool = "storage";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
z = {
|
|
type = "disk";
|
|
device = "/dev/sdz";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
zfs = {
|
|
size = "100%";
|
|
content = {
|
|
type = "zfs";
|
|
pool = "storage";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
a = {
|
|
type = "disk";
|
|
device = "/dev/sda";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
zfs = {
|
|
size = "100%";
|
|
content = {
|
|
type = "zfs";
|
|
pool = "storage2";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
zpool = {
|
|
storage = {
|
|
type = "zpool";
|
|
mode = "mirror";
|
|
mountpoint = "/storage";
|
|
|
|
datasets = {
|
|
dataset = {
|
|
type = "zfs_fs";
|
|
mountpoint = "/storage/dataset";
|
|
};
|
|
};
|
|
};
|
|
storage2 = {
|
|
type = "zpool";
|
|
mountpoint = "/storage2";
|
|
rootFsOptions = {
|
|
canmount = "off";
|
|
};
|
|
|
|
datasets = {
|
|
dataset = {
|
|
type = "zfs_fs";
|
|
mountpoint = "/storage2/dataset";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|