* 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"; 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.). { # Configuration for pwdutils (login, passwd, useradd, etc.).
# You cannot login without it! # You cannot login without it!
source = ./login.defs; source = ./login.defs;

View File

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