nix/os/devices: init router-wan-host

This commit is contained in:
steveej 2021-01-11 11:56:32 +01:00
parent 05cb97c929
commit 8358d55177
7 changed files with 244 additions and 0 deletions

View file

@ -0,0 +1,25 @@
{ ... }:
let
stage1Modules = [
"aesni_intel"
"kvm-intel"
"aes_x86_64"
"scsi_mod"
];
in
{
# TASK: new device
hardware.opinionatedDisk = {
enable = true;
encrypted = false;
diskId = "usb-SanDisk_USB_Flash_Drive_01013875dd7912fe12f6e8fe69cdeb24a78a1813c318ba161d69db591c0b3c0316d400000000000000000000a6cff87e009a450084558107b0a69ba3-0:0";
};
boot.initrd.availableKernelModules = stage1Modules;
boot.initrd.kernelModules = stage1Modules;
boot.extraModprobeConfig = ''
'';
}