nixfiles/hosts/lappy-surface/hardware.nix

26 lines
503 B
Nix
Raw Normal View History

2024-03-30 09:28:16 +00:00
{tree, ...}: {
imports = with tree; [
presets.nixos.encryptedDrive
];
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
initrd.availableKernelModules = [
# defaults from nixos-generate-config
2024-03-30 10:21:27 +00:00
"xhci_pci"
"nvme"
"usb_storage"
"usbhid"
"sd_mod"
"rtsx_pci_sdmmc"
2024-03-30 09:28:16 +00:00
];
kernelModules = ["kvm-intel"];
encryptedDrive.mode = "password";
2024-03-30 09:28:16 +00:00
};
hardware.cpu.intel.updateMicrocode = true;
}