23 lines
534 B
Nix
23 lines
534 B
Nix
{ tree, ... }:
|
|
let
|
|
usb_data = import ../../data/usb_data.nix { };
|
|
drive_data = import ../../data/normal_drive_data.nix { };
|
|
in {
|
|
boot = {
|
|
loader = {
|
|
systemd-boot.enable = true;
|
|
efi.canTouchEfiVariables = true;
|
|
};
|
|
initrd.availableKernelModules = [ # defaults from nixos-generate-config
|
|
"xhci_pci"
|
|
"nvme"
|
|
"usbhid"
|
|
"usb_storage"
|
|
"sd_mod"
|
|
"rtsx_pci_sdmmc"
|
|
];
|
|
kernelModules = [ "kvm-intel" ];
|
|
};
|
|
imports = with tree; [ presets.nixos.normal-encrypted-drive ];
|
|
}
|