NOflake/systems/disk-config.nix

49 lines
1.1 KiB
Nix
Raw Normal View History

2024-10-13 21:17:25 -07:00
{lib, ...}: {
disko.devices = {
disk.disk1 = {
2024-10-14 00:11:06 -07:00
device = lib.mkDefault "/dev/nvme0n1";
2024-10-13 21:17:25 -07:00
type = "disk";
content = {
type = "gpt";
partitions = {
esp = {
name = "ESP";
size = "500M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
plainSwap = {
size = "32G";
content = {
type = "swap";
discardPolicy = "both";
resumeDevice = true;
};
};
root = {
name = "root";
size = "100%";
content = {
type = "filesystem";
format = "bcachefs";
2024-10-14 00:11:06 -07:00
mountOptions = [
"noatime"
"compression=zstd"
"background_compression=zstd"
"discard"
2025-01-21 13:18:55 -08:00
# "fsck"
# "fix_errors"
2024-10-13 21:17:25 -07:00
];
2024-10-14 00:11:06 -07:00
mountpoint = "/";
2024-10-13 21:17:25 -07:00
};
};
};
};
};
};
}