diff options
author | Benjamin Staffin <benley@gmail.com> | 2020-02-15 16:45:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-15 16:45:47 -0500 |
commit | 4c5ea02dc5b85398f674e1459e27ece5cbd7f66f (patch) | |
tree | b60e63163779d6e52a9b4b0f0f3c57b2687181e1 /nixos/modules/system | |
parent | 1e613230d24fbb57bb75358dd1ede296142504f3 (diff) |
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/modules/system')
-rw-r--r-- | nixos/modules/system/boot/loader/grub/grub.nix | 6 |
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 |