retronix/common-config/disko.nix
2024-01-18 18:55:22 +01:00

41 lines
883 B
Nix

_:
{
disko.devices = {
disk = {
sdb = {
device = "/dev/sdb";
type = "disk";
content = {
type = "gpt";
partitions = {
ESP = {
type = "EF00";
size = "500M";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
end = "-4G";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
swap = {
name = "swap";
size = "100%";
content = {
type = "swap";
randomEncryption = true;
};
};
};
};
};
};
};
}