about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorBenjamin Staffin <benley@gmail.com>2020-02-15 16:45:47 -0500
committerGitHub <noreply@github.com>2020-02-15 16:45:47 -0500
commit4c5ea02dc5b85398f674e1459e27ece5cbd7f66f (patch)
treeb60e63163779d6e52a9b4b0f0f3c57b2687181e1 /nixos
parent1e613230d24fbb57bb75358dd1ede296142504f3 (diff)
downloadnixlib-4c5ea02dc5b85398f674e1459e27ece5cbd7f66f.tar
nixlib-4c5ea02dc5b85398f674e1459e27ece5cbd7f66f.tar.gz
nixlib-4c5ea02dc5b85398f674e1459e27ece5cbd7f66f.tar.bz2
nixlib-4c5ea02dc5b85398f674e1459e27ece5cbd7f66f.tar.lz
nixlib-4c5ea02dc5b85398f674e1459e27ece5cbd7f66f.tar.xz
nixlib-4c5ea02dc5b85398f674e1459e27ece5cbd7f66f.tar.zst
nixlib-4c5ea02dc5b85398f674e1459e27ece5cbd7f66f.zip
grub: Update extraConfig example text (#79406)
This expands the example to something one might actually want to use
to set up a serial console.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/system/boot/loader/grub/grub.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/loader/grub/grub.nix b/nixos/modules/system/boot/loader/grub/grub.nix
index 26c1197bf975..b97ef88a7ca0 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