NOflake/systems/disk-config.nix

49 lines
1.6 KiB
Nix
Raw Permalink Normal View History

2024-10-13 21:17:25 -07:00
{lib, ...}: {
2025-04-30 19:29:00 -07:00
disko.devices = {
disk.disk1 = {
device = lib.mkDefault "/dev/nvme0n1";
type = "disk";
2024-10-13 21:17:25 -07:00
content = {
2025-04-30 19:29:00 -07:00
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";
mountOptions = [
"noatime"
"compression=zstd"
"background_compression=zstd"
"discard"
# "fsck"
# "fix_errors"
];
mountpoint = "/";
};
};
};
2024-10-13 21:17:25 -07:00
};
};
};
}