Unverified Commit 0a71cf07 authored by Maximilian Bosch's avatar Maximilian Bosch
Browse files

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.
parent 86bb2474
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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