nixos/getty: use distro name in default greeting line

This commit is contained in:
Tristan Ross 2024-06-12 20:08:41 -07:00
parent 3ae3a26547
commit 49d5b2b7ba
No known key found for this signature in database
GPG Key ID: B09C422035669AF8

View File

@ -101,7 +101,7 @@ in
config = {
# 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.greetingLine = mkDefault ''<<< Welcome to ${config.system.nixos.distroName} ${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@" =
@ -158,4 +158,5 @@ in
};
meta.maintainers = with maintainers; [ RossComputerGuy ];
}