mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{ disks ? [ "/dev/sda" ], ... }: {
|
|
disko.devices = {
|
|
disk.main = {
|
|
device = builtins.elemAt disks 0;
|
|
type = "disk";
|
|
content = {
|
|
type = "table";
|
|
format = "gpt";
|
|
partitions = [
|
|
{
|
|
name = "boot";
|
|
start = "0";
|
|
end = "1M";
|
|
flags = [ "bios_grub" ];
|
|
}
|
|
{
|
|
name = "ESP";
|
|
start = "1M";
|
|
end = "512M";
|
|
bootable = true;
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
};
|
|
}
|
|
{
|
|
name = "nix";
|
|
start = "512M";
|
|
end = "100%";
|
|
part-type = "primary";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/nix";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
nodev."/" = {
|
|
fsType = "tmpfs";
|
|
mountOptions = [
|
|
"size=2G"
|
|
"defaults"
|
|
"mode=755"
|
|
];
|
|
};
|
|
};
|
|
}
|