* 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";
|
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.).
|
{ # Configuration for pwdutils (login, passwd, useradd, etc.).
|
||||||
# You cannot login without it!
|
# You cannot login without it!
|
||||||
source = ./login.defs;
|
source = ./login.defs;
|
||||||
|
@ -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" ''
|
||||||
|
|
||||||
|
[1;32m${config.services.mingetty.greetingLine}[0m
|
||||||
|
${config.services.mingetty.helpLine}
|
||||||
|
|
||||||
|
'';
|
||||||
|
target = "issue";
|
||||||
|
}
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user