From 369b6ddadf07e956969f957cd58b3cc9488f16fd Mon Sep 17 00:00:00 2001 From: Magic_RB Date: Thu, 20 Jul 2023 12:35:34 +0200 Subject: [PATCH] Enable Serial over Lan on blowhole Signed-off-by: Magic_RB --- nixos/systems/blowhole/default.nix | 1 + nixos/systems/blowhole/sol.nix | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 nixos/systems/blowhole/sol.nix diff --git a/nixos/systems/blowhole/default.nix b/nixos/systems/blowhole/default.nix index 023930d..f636a79 100644 --- a/nixos/systems/blowhole/default.nix +++ b/nixos/systems/blowhole/default.nix @@ -44,6 +44,7 @@ in ./watchdog.nix ./nixpkgs.nix ./users.nix + ./sol.nix ../../common/remote_access.nix inputs.serokell-nix.nixosModules.acme-sh config'.flake.nixosModules.hashicorp diff --git a/nixos/systems/blowhole/sol.nix b/nixos/systems/blowhole/sol.nix new file mode 100644 index 0000000..f350e47 --- /dev/null +++ b/nixos/systems/blowhole/sol.nix @@ -0,0 +1,13 @@ +{ ... }: +{ + boot.kernelParams = [ + "console=ttyS1,115200" + "console=tty1" + ]; + + boot.loader.grub.extraConfig = '' + serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1 + terminal_input console serial + terminal_output console serial + ''; +}