From 4c5ea02dc5b85398f674e1459e27ece5cbd7f66f Mon Sep 17 00:00:00 2001 From: Benjamin Staffin Date: Sat, 15 Feb 2020 16:45:47 -0500 Subject: [PATCH] grub: Update extraConfig example text (#79406) This expands the example to something one might actually want to use to set up a serial console. --- nixos/modules/system/boot/loader/grub/grub.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/loader/grub/grub.nix b/nixos/modules/system/boot/loader/grub/grub.nix index 26c1197bf97..b97ef88a7ca 100644 --- a/nixos/modules/system/boot/loader/grub/grub.nix +++ b/nixos/modules/system/boot/loader/grub/grub.nix @@ -224,7 +224,11 @@ in extraConfig = mkOption { default = ""; - example = "serial; terminal_output.serial"; + example = '' + serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1 + terminal_input --append serial + terminal_output --append serial + ''; type = types.lines; description = '' Additional GRUB commands inserted in the configuration file