30 lines
776 B
Nix
30 lines
776 B
Nix
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
{
|
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
|
|
|
# basic drivers
|
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "sd_mod" ];
|
|
|
|
# Intel CPU
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
hardware.cpu.intel.updateMicrocode = true;
|
|
|
|
# Intel graphics
|
|
boot.initrd.kernelModules = [ "i915" ];
|
|
|
|
# /boot efi partition to boot in UEFI mode
|
|
fileSystems."/boot" = {
|
|
device = "UUID=78FD-8F29";
|
|
fsType = "vfat";
|
|
neededForBoot = true;
|
|
options = [ "fmask=0022" "dmask=0022" ];
|
|
};
|
|
|
|
# /nix volume with the system & all persistent data
|
|
fileSystems."/nix" = {
|
|
device = "UUID=df5e6f5c-9700-48fd-ab16-90b7a1b3bca2";
|
|
fsType = "bcachefs";
|
|
neededForBoot = true;
|
|
};
|
|
}
|