* Move /etc/issue to the mingetty module.

svn path=/nixos/branches/modular-nixos/; revision=15758
This commit is contained in:
Eelco Dolstra 2009-05-28 11:34:46 +00:00
parent 2d7beac377
commit 3badebea95
2 changed files with 20 additions and 20 deletions

View File

@ -79,16 +79,6 @@ let
target = "hosts";
}
{ # Friendly greeting on the virtual consoles.
source = pkgs.writeText "issue" ''
${config.services.mingetty.greetingLine}
${config.services.mingetty.helpLine}
'';
target = "issue";
}
{ # Configuration for pwdutils (login, passwd, useradd, etc.).
# You cannot login without it!
source = ./login.defs;

View File

@ -61,14 +61,24 @@ in
options
];
services = {
extraJobs = map (ttyNumber : {
name = "tty" + toString ttyNumber;
job = "
start on udev
stop on shutdown
respawn ${mingetty}/sbin/mingetty --loginprog=${loginProgram} --noclear tty${toString ttyNumber}
";
}) ttyNumbers;
};
services.extraJobs = map (ttyNumber : {
name = "tty" + toString ttyNumber;
job = ''
start on udev
stop on shutdown
respawn ${mingetty}/sbin/mingetty --loginprog=${loginProgram} --noclear tty${toString ttyNumber}
'';
}) ttyNumbers;
environment.etc =
[ { # Friendly greeting on the virtual consoles.
source = pkgs.writeText "issue" ''
${config.services.mingetty.greetingLine}
${config.services.mingetty.helpLine}
'';
target = "issue";
}
];
}