nixos/getty: add missing --keep-baud
systemd ships `units/serial-getty@.service.m4` with the `--keep-baud`
option.
We override that unit, and didn't add the `--keep-baud` option. (We have
it in our other getty options there).
Having `--keep-baud` in `serial-getty@` makes a lot of sense - the
console keeps working if it's initialized with a less standard baud
rate, such as the [Helios64](https://wiki.kobol.io/helios64/intro/).
commitba42d639f16dc774f4fa661243b640b034d7be0a
authorFlorian Klink <flokli@flokli.de>
dateFri 25 Jun 2021, 09:50 (5 years ago)
parent0f441f5
nixos/modules/services/ttys/getty.nix+1−1
@@ -118,7 +118,7 @@ in
118118 let speeds = concatStringsSep "," (map toString config.services.getty.serialSpeed); in
119119 { serviceConfig.ExecStart = [
120120 "" # override upstream default with an empty ExecStart
121− (gettyCmd "%I ${speeds} $TERM")
121+ (gettyCmd "%I --keep-baud ${speeds} $TERM")
122122 ];
123123 restartIfChanged = false;
124124 };