121 lines
2.5 KiB
Nix
121 lines
2.5 KiB
Nix
|
{
|
||
|
disko.devices = {
|
||
|
disk = {
|
||
|
a = {
|
||
|
type = "disk";
|
||
|
device = "/dev/sda";
|
||
|
content = {
|
||
|
type = "gpt";
|
||
|
partitions = {
|
||
|
zfs = {
|
||
|
size = "100%";
|
||
|
content = {
|
||
|
type = "zfs";
|
||
|
pool = "storage";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
b = {
|
||
|
type = "disk";
|
||
|
device = "/dev/sdb";
|
||
|
content = {
|
||
|
type = "gpt";
|
||
|
partitions = {
|
||
|
zfs = {
|
||
|
size = "100%";
|
||
|
content = {
|
||
|
type = "zfs";
|
||
|
pool = "storage";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
c = {
|
||
|
type = "disk";
|
||
|
device = "/dev/sdc";
|
||
|
content = {
|
||
|
type = "gpt";
|
||
|
partitions = {
|
||
|
zfs = {
|
||
|
size = "100%";
|
||
|
content = {
|
||
|
type = "zfs";
|
||
|
pool = "storage";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
d = {
|
||
|
type = "disk";
|
||
|
device = "/dev/sdd";
|
||
|
content = {
|
||
|
type = "gpt";
|
||
|
partitions = {
|
||
|
zfs = {
|
||
|
size = "100%";
|
||
|
content = {
|
||
|
type = "zfs";
|
||
|
pool = "storage";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
e = {
|
||
|
type = "disk";
|
||
|
device = "/dev/sde";
|
||
|
content = {
|
||
|
type = "gpt";
|
||
|
partitions = {
|
||
|
zfs = {
|
||
|
size = "100%";
|
||
|
content = {
|
||
|
type = "zfs";
|
||
|
pool = "storage";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
f = {
|
||
|
type = "disk";
|
||
|
device = "/dev/sdf";
|
||
|
content = {
|
||
|
type = "gpt";
|
||
|
partitions = {
|
||
|
zfs = {
|
||
|
size = "100%";
|
||
|
content = {
|
||
|
type = "zfs";
|
||
|
pool = "storage";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
zpool = {
|
||
|
storage = {
|
||
|
type = "zpool";
|
||
|
mode = "raidz2";
|
||
|
mountpoint = "/storage";
|
||
|
datasets = {
|
||
|
dataset = {
|
||
|
type = "zfs_fs";
|
||
|
mountpoint = "/storage/dataset";
|
||
|
options = {
|
||
|
encryption = "on";
|
||
|
keyformat = "hex";
|
||
|
keylocation = "file:///home/ghoscht/.zfs/secret.key";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|