nix-dotfiles/hosts/server/disk-config.nix
alsaiduq-lab d96c914844 updates
seems to be the method to nixify a vps on my vps.
2026-01-02 19:12:50 -07:00

44 lines
920 B
Nix

{lib, ...}: {
disko.devices = {
disk = {
boot = {
type = "disk";
device = "/dev/xvda";
content = {
type = "gpt";
partitions = {
boot = {
size = "1M";
type = "EF02";
};
mbr = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/boot";
};
};
};
};
};
main = {
type = "disk";
device = "/dev/xvdb";
content = {
type = "gpt";
partitions = {
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
};
}