about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorLinus Heckemann <git@sphalerite.org>2017-10-25 10:13:33 +0100
committerLinus Heckemann <git@sphalerite.org>2017-10-25 10:16:15 +0100
commitb2c5075e8ad442a8a2b42979ea9351e35dc647fe (patch)
tree2c896f46db76953b8e9ef992174ed19f953740e6 /nixos
parent0ddc8a303bec3df0e0a6c8f4e47d49134dedd72a (diff)
nixos-manual service: show nixos-help option
Part of improving accessibility (#30760). Makes the manual easier to
access e.g. on serial consoles.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/misc/nixos-manual.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/modules/services/misc/nixos-manual.nix b/nixos/modules/services/misc/nixos-manual.nix
index 515864ec2e2de..41cadb4a6de02 100644
--- a/nixos/modules/services/misc/nixos-manual.nix
+++ b/nixos/modules/services/misc/nixos-manual.nix
@@ -135,8 +135,9 @@ in
         };
       };
 
-    services.mingetty.helpLine = mkIf cfg.showManual
-      "\nPress <Alt-F${toString cfg.ttyNumber}> for the NixOS manual.";
+      services.mingetty.helpLine = "\nRun `nixos-help` "
+        + lib.optionalString cfg.showManual "or press <Alt-F${toString cfg.ttyNumber}> "
+        + "for the NixOS manual.";
 
   };