nix-config/hosts/cirrostratus/disk-config.nix

79 lines
1.6 KiB
Nix
Raw Normal View History

2024-08-01 17:29:25 -05:00
{
disko.devices = {
disk = {
ssd = {
type = "disk";
device = "/dev/TODO";
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 = "/";
};
};
};
};
};
zfsa = {
type = "disk";
device = "/dev/TODO";
content = {
type = "gpt";
partitions = {
zfs = {
size = "100%";
content = {
type = "zfs";
pool = "storage";
};
};
};
};
};
zfsb = {
type = "disk";
device = "/dev/TODO";
content = {
type = "gpt";
partitions = {
zfs = {
size = "100%";
content = {
type = "zfs";
pool = "storage";
};
};
};
};
};
};
zpool = {
storage = {
type = "zpool";
mode = "mirror";
mountpoint = "/storage";
datasets = {
dataset = {
type = "zfs_fs";
mountpoint = "/storage/dataset";
};
};
};
};
};
}