summary refs log tree commit diff
path: root/nixos/modules/config/console.nix
diff options
context:
space:
mode:
authorrnhmjoj <rnhmjoj@inventati.org>2020-12-17 21:22:38 +0100
committerrnhmjoj <rnhmjoj@inventati.org>2020-12-17 21:29:33 +0100
commit9728907cd34136a8c2db38f0657920cf905106dc (patch)
tree88a0398cbe27e2113380f22b598b72b301de4e21 /nixos/modules/config/console.nix
parentc5cacfa07f179432c6d7f6a4af5ecd91ae6e0697 (diff)
downloadnixpkgs-9728907cd34136a8c2db38f0657920cf905106dc.tar
nixpkgs-9728907cd34136a8c2db38f0657920cf905106dc.tar.gz
nixpkgs-9728907cd34136a8c2db38f0657920cf905106dc.tar.bz2
nixpkgs-9728907cd34136a8c2db38f0657920cf905106dc.tar.lz
nixpkgs-9728907cd34136a8c2db38f0657920cf905106dc.tar.xz
nixpkgs-9728907cd34136a8c2db38f0657920cf905106dc.tar.zst
nixpkgs-9728907cd34136a8c2db38f0657920cf905106dc.zip
console: remove console.extraTTYs option
This closes issue #88085
Diffstat (limited to 'nixos/modules/config/console.nix')
-rw-r--r--nixos/modules/config/console.nix18
1 files changed, 4 insertions, 14 deletions
diff --git a/nixos/modules/config/console.nix b/nixos/modules/config/console.nix
index f662ed62d31..b8d52d1a8fc 100644
--- a/nixos/modules/config/console.nix
+++ b/nixos/modules/config/console.nix
@@ -90,20 +90,6 @@ in
       '';
     };
 
-    extraTTYs = mkOption {
-      default = [];
-      type = types.listOf types.str;
-      example = ["tty8" "tty9"];
-      description = ''
-        TTY (virtual console) devices, in addition to the consoles on
-        which mingetty and syslogd run, that must be initialised.
-        Only useful if you have some program that you want to run on
-        some fixed console.  For example, the NixOS installation CD
-        opens the manual in a web browser on console 7, so it sets
-        <option>console.extraTTYs</option> to <literal>["tty7"]</literal>.
-      '';
-    };
-
     useXkbConfig = mkOption {
       type = types.bool;
       default = false;
@@ -199,5 +185,9 @@ in
     (mkRenamedOptionModule [ "i18n" "consoleUseXkbConfig" ] [ "console" "useXkbConfig" ])
     (mkRenamedOptionModule [ "boot" "earlyVconsoleSetup" ] [ "console" "earlySetup" ])
     (mkRenamedOptionModule [ "boot" "extraTTYs" ] [ "console" "extraTTYs" ])
+    (mkRemovedOptionModule [ "console" "extraTTYs" ] ''
+      Since NixOS switched to systemd (circa 2012), TTYs have been spawned on
+      demand, so there is no need to configure them manually.
+    '')
   ];
 }