From 0a71cf07a82eacd0a618fe7ba7016f7de5f5c2f5 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Wed, 20 Sep 2023 22:16:03 +0200 Subject: [PATCH] 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. --- nixos/modules/programs/rust-motd.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/programs/rust-motd.nix b/nixos/modules/programs/rust-motd.nix index d5f1820ba752..7fd89e1658ef 100644 --- a/nixos/modules/programs/rust-motd.nix +++ b/nixos/modules/programs/rust-motd.nix @@ -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