30 lines
483 B
Nix
30 lines
483 B
Nix
{ ... }:
|
|
|
|
let
|
|
stage1Modules = [
|
|
"aesni_intel"
|
|
"kvm-intel"
|
|
"aes_x86_64"
|
|
"nvme"
|
|
"nvme_core"
|
|
|
|
"pcieport"
|
|
"thunderbolt"
|
|
"e1000e"
|
|
"xhci_pci"
|
|
"hxci_hcd"
|
|
];
|
|
|
|
in
|
|
{
|
|
# TASK: new device
|
|
hardware.encryptedDisk = {
|
|
enable = true;
|
|
diskId = "nvme-SKHynix_HFS001TD9TNI-L2B0B_CJ0AN89731030AV3Q";
|
|
};
|
|
|
|
# boot.initrd.availableKernelModules = stage1Modules;
|
|
boot.initrd.kernelModules = stage1Modules;
|
|
boot.extraModprobeConfig = ''
|
|
'';
|
|
}
|