40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ lib, ... }:
|
|
|
|
{
|
|
boot = {
|
|
# Enable LISH and Linode Booting w/ GRUB
|
|
loader = {
|
|
# Increase Timeout to Allow LISH Connection
|
|
# NOTE: The image generator tries to set a timeout of 0, so we must force
|
|
timeout = lib.mkDefault 10;
|
|
|
|
grub = {
|
|
enable = true;
|
|
forceInstall = true;
|
|
device = "nodev";
|
|
fsIdentifier = "label";
|
|
|
|
# Allow serial connection for GRUB to be able to use LISH
|
|
extraConfig = ''
|
|
serial --speed=19200 --unit=0 --word=8 --parity=no --stop=1;
|
|
terminal_input serial;
|
|
terminal_output serial
|
|
'';
|
|
};
|
|
};
|
|
|
|
# Add Required Kernel Modules
|
|
# NOTE: These are not documented in the install guide
|
|
initrd.availableKernelModules = [
|
|
"virtio_pci"
|
|
"virtio_scsi"
|
|
"ahci"
|
|
"sd_mod"
|
|
];
|
|
|
|
# Set Up LISH Serial Connection
|
|
kernelParams = [ "console=ttyS0,19200n8" ];
|
|
kernelModules = [ "virtio_net" ];
|
|
};
|
|
}
|