diff options
author | Robert Hensing <robert@roberthensing.nl> | 2022-07-14 11:27:24 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2022-07-21 15:32:00 +0200 |
commit | 5a98c630778e71ce0573c12a0b586c9a1dcdb4f4 (patch) | |
tree | 7d108bc13741311ceab2089567553077003aba39 /nixos/modules/services/ttys | |
parent | 9a0b26b216264d6187b4b5dba5c51c5b50d825a9 (diff) | |
download | nixlib-5a98c630778e71ce0573c12a0b586c9a1dcdb4f4.tar nixlib-5a98c630778e71ce0573c12a0b586c9a1dcdb4f4.tar.gz nixlib-5a98c630778e71ce0573c12a0b586c9a1dcdb4f4.tar.bz2 nixlib-5a98c630778e71ce0573c12a0b586c9a1dcdb4f4.tar.lz nixlib-5a98c630778e71ce0573c12a0b586c9a1dcdb4f4.tar.xz nixlib-5a98c630778e71ce0573c12a0b586c9a1dcdb4f4.tar.zst nixlib-5a98c630778e71ce0573c12a0b586c9a1dcdb4f4.zip |
nixos: Move getty helpLine definition to getty module
Working towards a unit-testable documentation module.
Diffstat (limited to 'nixos/modules/services/ttys')
-rw-r--r-- | nixos/modules/services/ttys/getty.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/ttys/getty.nix b/nixos/modules/services/ttys/getty.nix index 7021a2c80f85..206b61a36907 100644 --- a/nixos/modules/services/ttys/getty.nix +++ b/nixos/modules/services/ttys/getty.nix @@ -104,6 +104,7 @@ in # Note: this is set here rather than up there so that changing # nixos.label would not rebuild manual pages services.getty.greetingLine = mkDefault ''<<< Welcome to NixOS ${config.system.nixos.label} (\m) - \l >>>''; + services.getty.helpLine = mkIf (config.documentation.nixos.enable && config.documentation.doc.enable) "\nRun 'nixos-help' for the NixOS manual."; systemd.services."getty@" = { serviceConfig.ExecStart = [ |