nixos/agetty: override upstream default

Also see c2cf696430055498467dd9deec59939e8d52a43e.

Changed files
+8 -2
nixos
modules
services
ttys
+8 -2
nixos/modules/services/ttys/agetty.nix
···
};
systemd.services."container-getty@" =
-
{ serviceConfig.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.Restart = "always";
restartIfChanged = false;
enable = mkDefault config.boot.isContainer;
···
};
systemd.services."container-getty@" =
+
{ 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 = [
+
"" # 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;