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"];
|
2024-05-24 18:36:11 +01:00
|
|
|
encryptedDrive.mode = "password";
|
2024-03-30 09:28:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
hardware.cpu.intel.updateMicrocode = true;
|
|
|
|
}
|