33 lines
757 B
Nix
33 lines
757 B
Nix
{
|
|
disko.devices.disk.main = {
|
|
# CHANGE THIS to match the target disk:
|
|
# /dev/sda — typical SATA / SCSI
|
|
# /dev/vda — KVM / QEMU virtio
|
|
# /dev/nvme0n1 — NVMe
|
|
device = "/dev/vda";
|
|
type = "disk";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
ESP = {
|
|
size = "512M";
|
|
type = "EF00";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
mountOptions = [ "umask=0077" ];
|
|
};
|
|
};
|
|
root = {
|
|
size = "100%";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|