nixpkgs/upstart-jobs/mingetty.nix

11 lines
237 B
Nix
Raw Normal View History

{mingetty, ttyNumber, loginProgram}:
{
name = "tty" + toString ttyNumber;
job = "
start on startup
stop on shutdown
respawn ${mingetty}/sbin/mingetty --loginprog=${loginProgram} --noclear tty${toString ttyNumber}
";
}