summary refs log tree commit diff
path: root/nixos/modules/services/ttys
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2021-06-25 09:50:52 +0200
committerFlorian Klink <flokli@flokli.de>2021-06-25 09:56:54 +0200
commitba42d639f16dc774f4fa661243b640b034d7be0a (patch)
treef0447f3f78bd765b8801f006f441e54885eb7514 /nixos/modules/services/ttys
parent0f441f5cad50230497666277a450c00fae03f702 (diff)
downloadnixpkgs-ba42d639f16dc774f4fa661243b640b034d7be0a.tar
nixpkgs-ba42d639f16dc774f4fa661243b640b034d7be0a.tar.gz
nixpkgs-ba42d639f16dc774f4fa661243b640b034d7be0a.tar.bz2
nixpkgs-ba42d639f16dc774f4fa661243b640b034d7be0a.tar.lz
nixpkgs-ba42d639f16dc774f4fa661243b640b034d7be0a.tar.xz
nixpkgs-ba42d639f16dc774f4fa661243b640b034d7be0a.tar.zst
nixpkgs-ba42d639f16dc774f4fa661243b640b034d7be0a.zip
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/).
Diffstat (limited to 'nixos/modules/services/ttys')
-rw-r--r--nixos/modules/services/ttys/getty.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/ttys/getty.nix b/nixos/modules/services/ttys/getty.nix
index 2480e681de8..8345dfabeb7 100644
--- a/nixos/modules/services/ttys/getty.nix
+++ b/nixos/modules/services/ttys/getty.nix
@@ -118,7 +118,7 @@ in
       let speeds = concatStringsSep "," (map toString config.services.getty.serialSpeed); in
       { serviceConfig.ExecStart = [
           "" # override upstream default with an empty ExecStart
-          (gettyCmd "%I ${speeds} $TERM")
+          (gettyCmd "%I --keep-baud ${speeds} $TERM")
         ];
         restartIfChanged = false;
       };