nixos/rust-motd: run once on bootup

That way e.g. the last login and uptime isn't completely bogus when
accessing a machine for the first time after a reboot.
This commit is contained in:
Maximilian Bosch 2023-09-20 22:16:03 +02:00
parent 86bb247433
commit 0a71cf07a8
No known key found for this signature in database
GPG Key ID: 9A6EEA275CA5BE0A

View File

@ -50,6 +50,7 @@ in {
path = with pkgs; [ bash ];
documentation = [ "https://github.com/rust-motd/rust-motd/blob/v${pkgs.rust-motd.version}/README.md" ];
description = "motd generator";
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = "${pkgs.writeShellScript "update-motd" ''
${pkgs.rust-motd}/bin/rust-motd ${format.generate "motd.conf" cfg.settings} > motd