33 lines
708 B
Nix
33 lines
708 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: {
|
|
disko.devices = {
|
|
disk = {
|
|
ssd = {
|
|
type = "disk";
|
|
device = "/dev/disk/by-id/${config.secrets.secrets.local.disko.ssd}";
|
|
content = with lib.disko.gpt; {
|
|
type = "table";
|
|
format = "gpt";
|
|
partitions = [
|
|
(partEfiBoot "boot" "0%" "260MB")
|
|
{
|
|
name = "rpool";
|
|
content = {
|
|
type = "zfs";
|
|
pool = "rpool";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
zpool = with lib.disko.zfs; {
|
|
rpool = defaultZpoolOptions // {datasets = defaultZfsDatasets;};
|
|
};
|
|
};
|
|
fileSystems."/state".neededForBoot = true;
|
|
}
|