dotfiles/configurations/nixos/endurance/disko.nix
2026-01-05 12:09:10 +01:00

64 lines
1.4 KiB
Nix

{inputs, ...}: {
imports = [
inputs.disko.nixosModules.disko
];
disko.devices = {
disk = {
main = {
type = "disk";
device = "/dev/nvme1n1";
content = {
type = "gpt";
partitions = {
boot = {
size = "1M";
type = "EF02"; # for grub MBR
};
ESP = {
size = "1G";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = ["umask=0077"];
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
gaming = {
type = "disk";
device = "/dev/sdd";
content = {
type = "gpt";
partitions = {
gaming = {
size = "100%";
content = {
type = "btrfs";
extraArgs = ["-f"];
mountpoint = "/mnt/games/hdd";
mountOptions = [
"compress=zstd"
"noatime"
"nofail"
];
};
};
};
};
};
};
};
}