nixos-servers/modules/disk-config.nix

35 lines
716 B
Nix
Raw Normal View History

2023-11-13 21:44:43 +00:00
{
disko.devices = {
disk = {
vdb = {
device = "/dev/nvme0n1";
type = "disk";
content = {
type = "gpt";
partitions = {
ESP = {
type = "EF00";
size = "500M";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
end = "-4G";
2023-11-13 21:44:43 +00:00
content = {
type = "filesystem";
format = "btrfs";
2023-11-13 21:44:43 +00:00
mountpoint = "/";
};
};
swap = { size = "100%"; };
2023-11-13 21:44:43 +00:00
};
};
};
};
};
}