mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
109 lines
2.2 KiB
Nix
109 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";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|