Dynamic login message on nixos server

Hi everyone,

I’d like to display a message with some usage statistics to my users when they log in to my Nixos machine. The way I would think to do this “conventionally” is to run a script from /etc/profile, but I’m not sure if there’s an easy (or idiomatic!) way on Nixos! What would your approach be?

Thanks very much!

Do you mean a login message like for a terminal/console/tty?
If so, you’ll find all the options at services.mingetty useful.

Ah, I forgot about this question! That looks pretty helpful–I’ll try it out. Thank you!

services.getty.greetingLine = ‘‘your message’’