Skip to content

Commit

Permalink
Update motd with ChangeLog URL and release name if available inside enc
Browse files Browse the repository at this point in the history
DIR-766
  • Loading branch information
frlan committed Sep 2, 2023
1 parent 9eda96c commit 8c0cb42
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions nixos/platform/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,16 @@ in
)
);

users.motd = ''
users.motd = let
has_release_name = enc.parameters ? release_name;
in
''
Welcome to the Flying Circus!
Status: https://status.flyingcircus.io/
Docs: https://flyingcircus.io/doc/
Release: ${config.system.nixos.label}
Docs: https://doc.flyingcircus.io/
${ opt (enc.parameters ? release_changelog ) ("ChangeLog: " + enc.parameters.release_changelog)}
Release: ${ opt has_release_name "${enc.parameters.release_name} (" + config.system.nixos.label + opt has_release_name ")"}
'' +
(opt (enc ? name && parameters ? location && parameters ? environment)
Expand Down

0 comments on commit 8c0cb42

Please sign in to comment.