This commit is contained in:
reym 2026-04-29 02:12:44 +02:00
commit 53f5850a3d
6 changed files with 256 additions and 0 deletions

33
disko.nix Normal file
View file

@ -0,0 +1,33 @@
{
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 = "/";
};
};
};
};
};
}