mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 19:54:05 +00:00
* Allow any login program to be specified.
svn path=/nixos/trunk/; revision=7575
This commit is contained in:
parent
873a8de2ad
commit
56da3e7887
@ -123,8 +123,9 @@ import ../upstart-jobs/gather.nix {
|
||||
# The terminals on ttyX.
|
||||
++ (map
|
||||
(ttyNumber: makeJob (import ../upstart-jobs/mingetty.nix {
|
||||
inherit (pkgs) mingetty pam_login;
|
||||
inherit (pkgs) mingetty;
|
||||
inherit ttyNumber;
|
||||
loginProgram = "${pkgs.pam_login}/bin/login";
|
||||
}))
|
||||
(config.get ["services" "mingetty" "ttys"])
|
||||
)
|
||||
|
@ -1,10 +1,10 @@
|
||||
{mingetty, pam_login, ttyNumber}:
|
||||
{mingetty, ttyNumber, loginProgram}:
|
||||
|
||||
{
|
||||
name = "tty" + toString ttyNumber;
|
||||
job = "
|
||||
start on startup
|
||||
stop on shutdown
|
||||
respawn ${mingetty}/sbin/mingetty --loginprog=${pam_login}/bin/login --noclear tty${toString ttyNumber}
|
||||
respawn ${mingetty}/sbin/mingetty --loginprog=${loginProgram} --noclear tty${toString ttyNumber}
|
||||
";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user