2020-02-02 07:56:26 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
2019-11-23 23:55:26 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
# Required for the lish console
|
2021-04-12 01:35:24 +01:00
|
|
|
boot.kernelParams = [ "console=ttyS0,19200n8" ];
|
2019-11-23 23:55:26 +00:00
|
|
|
|
|
|
|
boot.loader = {
|
|
|
|
# Timeout to allow lish to connect
|
|
|
|
timeout = 10;
|
|
|
|
|
|
|
|
grub = {
|
|
|
|
device = "nodev";
|
|
|
|
extraConfig = ''
|
|
|
|
serial --speed=19200 --unit=0 --word=8 --parity=no --stop=1;
|
|
|
|
terminal_input serial;
|
|
|
|
terminal_output serial;
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|