nix-config/hosts/cirrostratus/disk-config.nix
Gabe Venberg f9632c8fc3 lots of stuff:
Moved syncthing to system service
Restic actually works now
removed some old system configs.
formatting.
2024-09-30 18:45:47 +02:00

84 lines
1.8 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";
mountpoint = "/storage";
};
datasets = {
backup = {
type = "zfs_fs";
options = {
mountpoint = "/backup";
quota = "6T";
};
};
};
};
};
};
}