hydra: bayfront: Add a message of the day.

* hydra/bayfront.scm (%motd): New variable.
(services): Customize 'login-service-type' to use %MOTD.
This commit is contained in:
Ludovic Courtès 2017-02-02 10:13:11 +01:00
parent ddfda94d07
commit 83061be2db
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 32 additions and 2 deletions

View File

@ -104,6 +104,33 @@
;;; Operating system.
;;;
(define %motd
;; Message of the day! Libcaca's img2txt gives something that's not so
;; great.
(plain-file "motd"
"\
: .
S: S
: 8 . . :8 t . . . ;
%888. ; : SX8@
t 8 % .
.8 8 .
.88 t : Welcome to bayfront!
. t .8
. % . 8
8 8 8
. X 8
8 8@8
Best practices:
1. Store everything in guix-maintenance.git.
2. Use the Git checkouts of Guix and guix-maintenance in ~root.
3. Notify guix-sysadmin@gnu.org when reconfiguring.
4. Notify guix-sysadmin@gnu.org when something goes wrong.
Happy hacking!\n"))
(operating-system
(host-name "bayfront")
(timezone "Europe/Paris")
@ -183,5 +210,8 @@
(modify-services %base-services
;; Disable substitutes altogether.
(guix-service-type config => %guix-daemon-config)))))
(guix-service-type config => %guix-daemon-config)
(login-service-type
config => (login-configuration
(inherit config)
(motd %motd)))))))