nix/hosts/lemur/disko.nix

95 lines
2.2 KiB
Nix

{
disko.devices = {
disk = {
disk0 = {
device = "/dev/nvme0n1";
type = "disk";
content = {
type = "gpt";
partitions = {
boot = {
name = "boot";
size = "1M";
type = "EF02";
};
ESP = {
priority = 1;
size = "1G";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [
"defaults"
"umask=0077"
];
extraArgs = [
"-n"
"BOOT"
];
};
};
swap = {
size = "108G";
content = {
type = "swap";
discardPolicy = "both";
resumeDevice = true;
extraArgs = [
"--label"
"SWAP"
];
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
extraArgs = [
"-L"
"ROOT"
];
};
};
};
};
};
disk1 = {
device = "/dev/nvme1n1";
type = "disk";
content = {
type = "gpt";
partitions = {
data = {
size = "1T";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/data";
extraArgs = [
"-L"
"DATA"
];
};
};
home = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/home";
extraArgs = [
"-L"
"HOME"
];
};
};
};
};
};
};
};
}