added disko.nix

This commit is contained in:
Nicole Dresselhaus 2025-06-10 21:33:11 +02:00
parent c0a2d64187
commit fefbd61378

25
disco.nix Normal file
View File

@ -0,0 +1,25 @@
{ disks ? [ "/dev/nvme0n1" ], ... }:
{
disk = {
device = builtins.elemAt disks 0;
type = "disk";
content = {
type = "gpt";
partitions = [
{ name = "ESP"; type = "EF00"; size = "512M"; content.type = "filesystem";
content.format = "fat32"; mountpoint = "/boot"; }
{ name = "rpool"; type = "BE00"; size = "60G";
content.type = "zfs"; content.pool = "rpool"; }
{ name = "tank"; type = "BE00";
content.type = "zfs"; content.pool = "tank"; }
];
};
};
zpool = {
rpool = { datasets = { root = { mountpoint = "/"; }; }; };
tank = { datasets = { media = { mountpoint = "/tank"; }; }; };
};
}