From ec54b27d677eac6050c368c7e5b45772405cbbbb Mon Sep 17 00:00:00 2001 From: Zuckerberg Date: Fri, 3 Mar 2023 00:14:22 -0700 Subject: [PATCH] fix router serial --- machines/router/hardware-configuration.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/machines/router/hardware-configuration.nix b/machines/router/hardware-configuration.nix index 13d2d98..6e4c0cf 100644 --- a/machines/router/hardware-configuration.nix +++ b/machines/router/hardware-configuration.nix @@ -11,9 +11,13 @@ # Enable serial output boot.kernelParams = [ "panic=30" "boot.panic_on_fail" # reboot the machine upon fatal boot issues - "console=ttyS0,115200" # enable serial console - "console=tty1" + "console=ttyS0,115200n8" # enable serial console ]; + boot.loader.grub.extraConfig = " + serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1 + terminal_input serial + terminal_output serial + "; # firmware firmware.x86_64.enable = true;