2021-06-19 09:31:45 +02:00
|
|
|
{
|
2022-03-23 13:10:18 +01:00
|
|
|
modulesPath,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
|
|
|
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
|
2021-06-15 17:25:16 +02:00
|
|
|
|
2021-06-18 18:31:46 +02:00
|
|
|
# === Boot options ===
|
2022-03-23 13:10:18 +01:00
|
|
|
boot.initrd.availableKernelModules = ["xhci_pci" "ehci_pci" "ahci" "usbhid" "uas" "usb_storage" "sd_mod"];
|
|
|
|
boot.initrd.kernelModules = [];
|
|
|
|
boot.kernelModules = ["kvm-intel"];
|
|
|
|
boot.extraModulePackages = [];
|
2021-06-15 17:25:16 +02:00
|
|
|
|
2021-06-18 18:31:46 +02:00
|
|
|
# === Internal drive ===
|
2021-06-15 18:56:08 +02:00
|
|
|
fileSystems."/" = {
|
2023-09-10 00:34:14 +02:00
|
|
|
device = "/dev/disk/by-label/root";
|
|
|
|
fsType = "ext4";
|
2021-06-15 18:56:08 +02:00
|
|
|
};
|
2021-06-15 17:25:16 +02:00
|
|
|
|
2021-06-15 18:56:08 +02:00
|
|
|
fileSystems."/boot" = {
|
2023-09-10 00:34:14 +02:00
|
|
|
device = "/dev/disk/by-label/esp";
|
2021-06-15 18:56:08 +02:00
|
|
|
fsType = "vfat";
|
|
|
|
};
|
2021-06-15 17:25:16 +02:00
|
|
|
|
2023-09-10 00:34:14 +02:00
|
|
|
swapDevices = [
|
|
|
|
{device = "/dev/disk/by-label/swap";}
|
|
|
|
];
|
2022-03-23 13:10:18 +01:00
|
|
|
}
|