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:
parent
86bb247433
commit
0a71cf07a8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user