2024-10-31 15:50:00 +01:00
|
|
|
{modulesPath, ...}: {
|
|
|
|
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
|
|
|
|
|
|
|
|
# === Boot options ===
|
|
|
|
boot.initrd.availableKernelModules = ["xhci_pci" "ehci_pci" "ahci" "usbhid" "uas" "usb_storage" "sd_mod"];
|
|
|
|
boot.initrd.kernelModules = [];
|
|
|
|
boot.kernelModules = ["kvm-intel"];
|
|
|
|
boot.extraModulePackages = [];
|
|
|
|
|
2024-11-01 13:34:24 +01:00
|
|
|
disko.devices.disk.main = {
|
|
|
|
device = "/dev/disk/by-id/ata-SanDisk_SD6SF1M128G1022_142261400678";
|
|
|
|
|
|
|
|
type = "disk";
|
|
|
|
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"];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
plainSwap = {
|
|
|
|
size = "8G";
|
|
|
|
content = {
|
|
|
|
type = "swap";
|
|
|
|
discardPolicy = "both";
|
|
|
|
resumeDevice = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
root = {
|
|
|
|
size = "100%";
|
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "ext4";
|
|
|
|
mountpoint = "/";
|
2024-10-31 15:50:00 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|