48 lines
No EOL
1.1 KiB
Nix
48 lines
No EOL
1.1 KiB
Nix
{
|
|
disko.devices = {
|
|
disk = {
|
|
main = {
|
|
type = "disk";
|
|
device = "/dev/sda";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
# GRUB BIOS boot partition
|
|
boot = {
|
|
size = "1M";
|
|
type = "EF02";
|
|
};
|
|
# Boot partition
|
|
ESP = {
|
|
size = "1G";
|
|
type = "EF00";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
};
|
|
};
|
|
# Swap partition
|
|
swap = {
|
|
size = "4G";
|
|
content = {
|
|
type = "swap";
|
|
randomEncryption = false;
|
|
};
|
|
};
|
|
# Root partition (remaining space)
|
|
root = {
|
|
size = "100%";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/";
|
|
mountOptions = [ "defaults" "noatime" ];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
} |