Add VPS host

This commit is contained in:
Yan Lin 2025-09-08 20:05:11 +02:00
parent bb686b0fc0
commit 95d4a32acb
8 changed files with 220 additions and 2 deletions

View file

@ -0,0 +1,48 @@
{
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" ];
};
};
};
};
};
};
};
}