about summary refs log tree commit diff
path: root/modules/services/ttys
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-09-23 20:50:53 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-09-23 20:50:53 +0000
commitb2334990dbb00f37b9568854291eae57b82a7865 (patch)
treee445218e596593dd0cdeca6cd727875cc8aafd5a /modules/services/ttys
parenteab68acb35832dd0365b801188f1cb7821eb1b25 (diff)
downloadnixlib-b2334990dbb00f37b9568854291eae57b82a7865.tar
nixlib-b2334990dbb00f37b9568854291eae57b82a7865.tar.gz
nixlib-b2334990dbb00f37b9568854291eae57b82a7865.tar.bz2
nixlib-b2334990dbb00f37b9568854291eae57b82a7865.tar.lz
nixlib-b2334990dbb00f37b9568854291eae57b82a7865.tar.xz
nixlib-b2334990dbb00f37b9568854291eae57b82a7865.tar.zst
nixlib-b2334990dbb00f37b9568854291eae57b82a7865.zip
Making the mingetty module support not only vc ttys.
svn path=/nixos/trunk/; revision=17391
Diffstat (limited to 'modules/services/ttys')
-rw-r--r--modules/services/ttys/mingetty.nix11
1 files changed, 5 insertions, 6 deletions
diff --git a/modules/services/ttys/mingetty.nix b/modules/services/ttys/mingetty.nix
index cab206ec2fed..d4cade43f400 100644
--- a/modules/services/ttys/mingetty.nix
+++ b/modules/services/ttys/mingetty.nix
@@ -15,10 +15,9 @@ in
     services.mingetty = {
 
       ttys = mkOption {
-        default = [1 2 3 4 5 6];
+        default = [ "tty1" "tty2" "tty3" "tty4" "tty5" "tty6" ];
         description = ''
-          The list of tty (virtual console) devices on which to start a
-          login prompt.
+          The list of tty devices on which to start a login prompt.
         '';
       };
 
@@ -58,13 +57,13 @@ in
   config = {
 
     # Generate a separate job for each tty.  
-    jobs = map (ttyNumber: {
+    jobs = map (tty: {
     
-      name = "tty${toString ttyNumber}";
+      name = tty;
 
       startOn = "udev";
 
-      exec = "${pkgs.mingetty}/sbin/mingetty --loginprog=${pkgs.pam_login}/bin/login --noclear tty${toString ttyNumber}";
+      exec = "${pkgs.mingetty}/sbin/mingetty --loginprog=${pkgs.pam_login}/bin/login --noclear ${tty}";
       
     }) config.services.mingetty.ttys;