nixos/hardware/intel-nuc.nix

25 lines
604 B
Nix
Raw Normal View History

2023-09-10 21:33:56 +02: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 ===
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";}
];
}