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

81 lines
1.7 KiB
Nix
Raw Normal View History

2024-08-02 00:29:25 +02:00
{
disko.devices = {
disk = {
ssd = {
type = "disk";
2024-08-04 02:10:02 +02:00
device = "/dev/disk/by-id/nvme-PC711_NVMe_SK_hynix_256GB____FNAAN64121210AP27";
2024-08-02 00:29:25 +02:00
content = {
type = "gpt";
partitions = {
ESP = {
2024-08-03 23:48:50 +02:00
size = "512M";
2024-08-02 00:29:25 +02: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 23:48:50 +02:00
device = "/dev/disk/by-id/wwn-0x5000cca27ed9174d";
2024-08-02 00:29:25 +02:00
content = {
type = "gpt";
partitions = {
zfs = {
size = "100%";
content = {
type = "zfs";
pool = "storage";
};
};
};
};
};
zfsb = {
type = "disk";
2024-08-03 23:48:50 +02:00
device = "/dev/disk/by-id/wwn-0x5000cca27ed8106c";
2024-08-02 00:29:25 +02:00
content = {
type = "gpt";
partitions = {
zfs = {
size = "100%";
content = {
type = "zfs";
pool = "storage";
};
};
};
};
};
};
zpool = {
storage = {
type = "zpool";
mode = "mirror";
2024-08-03 23:48:50 +02:00
rootFsOptions = {
compression = "zstd";
};
2024-08-02 00:29:25 +02:00
datasets = {
dataset = {
type = "zfs_fs";
2024-08-03 23:48:50 +02:00
options.mountpoint = "/storage/dataset";
2024-08-02 00:29:25 +02:00
};
};
};
};
};
}