Files
nix/systems/x86_64-linux/nut-gc2/disko-config.nix
2025-10-30 14:03:53 +08:00

56 lines
1.3 KiB
Nix

{
disko.devices = {
disk = {
main = {
type = "disk";
device = "/dev/vda";
content = {
type = "gpt";
partitions = {
boot = {
size = "1M";
type = "EF02";
priority = 1;
};
root = {
end = "-4G";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
mountOptions = [ "noatime" ];
};
};
swap = {
size = "100%";
content = {
type = "swap";
discardPolicy = "both";
resumeDevice = false; # resume from hiberation from this device
};
};
};
};
};
vdb = {
type = "disk";
device = "/dev/vdb";
content = {
type = "gpt";
partitions = {
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/srv";
mountOptions = [ "noatime" ];
};
};
};
};
};
};
};
}