blade: fix serial console

This commit is contained in:
Luke Granger-Brown 2021-03-14 17:39:07 +00:00
parent bb1178e82c
commit c682fc0422

View file

@ -29,7 +29,19 @@ in {
config = {
boot.initrd.availableKernelModules = [ "ahci" "ohci_pci" "ehci_pci" "pata_atiixp" "uhci_hcd" "be2iscsi" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
boot.kernelModules = [ "kvm-amd" "acpi_power_meter" "acpi_ipmi" "ipmi_si" ];
boot.kernelParams = [ "mitigations=off" ];
# Enable serial console.
boot.loader.grub.extraConfig = ''
serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1
terminal_input console serial
terminal_output console serial
'';
boot.kernelParams = [
"console=tty1"
"console=ttyS0,115200" # <-- /dev/console
"mitigations=off"
];
fileSystems = let
zfs = device: {
@ -158,17 +170,6 @@ in {
Storage=none
ProcessSizeMax=0
'';
# Enable serial console.
loader.grub.extraConfig = ''
serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1
terminal_input console serial
terminal_output console serial
'';
boot.kernelParams = [
"console=tty1"
"console=ttyS0,115200" # <-- /dev/console
];
system.stateVersion = "21.05";
};