diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2017-08-13 19:07:38 +0200 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2017-08-13 19:07:38 +0200 |
commit | 2d5a04e5bdb3e5817352d6c31eb56f0653cbe50c (patch) | |
tree | 61867b3cbd38c4af3f90128d6df4aefa3b91dce3 /nixos/modules/services/ttys | |
parent | 05212cd4d677e3f1c00e25ebd67773c112eaee7d (diff) | |
download | nixlib-2d5a04e5bdb3e5817352d6c31eb56f0653cbe50c.tar nixlib-2d5a04e5bdb3e5817352d6c31eb56f0653cbe50c.tar.gz nixlib-2d5a04e5bdb3e5817352d6c31eb56f0653cbe50c.tar.bz2 nixlib-2d5a04e5bdb3e5817352d6c31eb56f0653cbe50c.tar.lz nixlib-2d5a04e5bdb3e5817352d6c31eb56f0653cbe50c.tar.xz nixlib-2d5a04e5bdb3e5817352d6c31eb56f0653cbe50c.tar.zst nixlib-2d5a04e5bdb3e5817352d6c31eb56f0653cbe50c.zip |
nixos/agetty: override upstream default
Also see c2cf696430055498467dd9deec59939e8d52a43e.
Diffstat (limited to 'nixos/modules/services/ttys')
-rw-r--r-- | nixos/modules/services/ttys/agetty.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/nixos/modules/services/ttys/agetty.nix b/nixos/modules/services/ttys/agetty.nix index f8dd75ea2c46..3429397d2cc2 100644 --- a/nixos/modules/services/ttys/agetty.nix +++ b/nixos/modules/services/ttys/agetty.nix @@ -85,12 +85,18 @@ in }; systemd.services."container-getty@" = - { serviceConfig.ExecStart = gettyCmd "--noclear --keep-baud pts/%I 115200,38400,9600 $TERM"; + { serviceConfig.ExecStart = [ + "" # override upstream default with an empty ExecStart + (gettyCmd "--noclear --keep-baud pts/%I 115200,38400,9600 $TERM") + ]; restartIfChanged = false; }; systemd.services."console-getty" = - { serviceConfig.ExecStart = gettyCmd "--noclear --keep-baud console 115200,38400,9600 $TERM"; + { serviceConfig.ExecStart = [ + "" # override upstream default with an empty ExecStart + (gettyCmd "--noclear --keep-baud console 115200,38400,9600 $TERM") + ]; serviceConfig.Restart = "always"; restartIfChanged = false; enable = mkDefault config.boot.isContainer; |