81 lines
1.7 KiB
Nix
81 lines
1.7 KiB
Nix
{
|
|
disko.devices = {
|
|
disk = {
|
|
ssd = {
|
|
type = "disk";
|
|
device = "/dev/disk/by-id/nvme-PC711_NVMe_SK_hynix_256GB____FNAAN64121210AP27";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
ESP = {
|
|
size = "512M";
|
|
type = "EF00";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
};
|
|
};
|
|
root = {
|
|
size = "100%";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
zfsa = {
|
|
type = "disk";
|
|
device = "/dev/disk/by-id/wwn-0x5000cca27ed9174d";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
zfs = {
|
|
size = "100%";
|
|
content = {
|
|
type = "zfs";
|
|
pool = "storage";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
zfsb = {
|
|
type = "disk";
|
|
device = "/dev/disk/by-id/wwn-0x5000cca27ed8106c";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
zfs = {
|
|
size = "100%";
|
|
content = {
|
|
type = "zfs";
|
|
pool = "storage";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
zpool = {
|
|
storage = {
|
|
type = "zpool";
|
|
mode = "mirror";
|
|
rootFsOptions = {
|
|
compression = "zstd";
|
|
};
|
|
|
|
datasets = {
|
|
dataset = {
|
|
type = "zfs_fs";
|
|
options.mountpoint = "/storage/dataset";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|