feat: add ksios (vm)

This commit is contained in:
Noa Aarts 2024-09-14 20:51:41 +02:00
parent 6629e98edc
commit fa9cecb719
Signed by: noa
GPG key ID: 1850932741EFF672
6 changed files with 480 additions and 0 deletions

View file

@ -0,0 +1,41 @@
# Example to create a bios compatible gpt partition
{ lib, ... }:
{
disko.devices = {
disk.disk1 = {
device = lib.mkDefault "/dev/xvda";
type = "disk";
content = {
type = "gpt";
partitions = {
boot = {
name = "boot";
size = "1M";
type = "EF02";
};
esp = {
name = "ESP";
size = "500M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
mountOptions = [
"defaults"
];
};
};
};
};
};
};
}