mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-06 04:24:28 +03:00
* Move /etc/issue to the mingetty module.
svn path=/nixos/branches/modular-nixos/; revision=15758
This commit is contained in:
parent
2d7beac377
commit
3badebea95
@ -79,16 +79,6 @@ let
|
||||
target = "hosts";
|
||||
}
|
||||
|
||||
{ # Friendly greeting on the virtual consoles.
|
||||
source = pkgs.writeText "issue" ''
|
||||
|
||||
[1;32m${config.services.mingetty.greetingLine}[0m
|
||||
${config.services.mingetty.helpLine}
|
||||
|
||||
'';
|
||||
target = "issue";
|
||||
}
|
||||
|
||||
{ # Configuration for pwdutils (login, passwd, useradd, etc.).
|
||||
# You cannot login without it!
|
||||
source = ./login.defs;
|
||||
|
@ -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" ''
|
||||
|
||||
[1;32m${config.services.mingetty.greetingLine}[0m
|
||||
${config.services.mingetty.helpLine}
|
||||
|
||||
'';
|
||||
target = "issue";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user