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

75 lines
1.6 KiB
Nix
Raw Normal View History

2024-08-01 17:29:25 -05:00
{
disko.devices = {
disk = {
ssd = {
type = "disk";
2024-08-03 19:10:02 -05:00
device = "/dev/disk/by-id/nvme-PC711_NVMe_SK_hynix_256GB____FNAAN64121210AP27";
2024-08-01 17:29:25 -05:00
content = {
type = "gpt";
partitions = {
ESP = {
2024-08-03 16:48:50 -05:00
size = "512M";
2024-08-01 17:29:25 -05:00
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
zfsa = {
type = "disk";
2024-08-03 16:48:50 -05:00
device = "/dev/disk/by-id/wwn-0x5000cca27ed9174d";
2024-08-01 17:29:25 -05:00
content = {
type = "gpt";
partitions = {
zfs = {
size = "100%";
content = {
type = "zfs";
pool = "storage";
};
};
};
};
};
zfsb = {
type = "disk";
2024-08-03 16:48:50 -05:00
device = "/dev/disk/by-id/wwn-0x5000cca27ed8106c";
2024-08-01 17:29:25 -05:00
content = {
type = "gpt";
partitions = {
zfs = {
size = "100%";
content = {
type = "zfs";
pool = "storage";
};
};
};
};
};
};
zpool = {
storage = {
type = "zpool";
mode = "mirror";
2024-08-03 16:48:50 -05:00
rootFsOptions = {
compression = "zstd";
2024-08-07 15:24:17 -05:00
mountpoint = "/storage";
2024-08-01 17:29:25 -05:00
};
};
};
};
}