diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2023-09-20 22:16:03 +0200 |
---|---|---|
committer | Maximilian Bosch <maximilian@mbosch.me> | 2023-09-20 22:16:03 +0200 |
commit | 0a71cf07a82eacd0a618fe7ba7016f7de5f5c2f5 (patch) | |
tree | e8dc40223454d9c92ae80b45192cb591c25c1a06 /nixos/modules/programs | |
parent | 86bb2474332bcaec8ad0ebfa0128a860d1434309 (diff) |
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.
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r-- | nixos/modules/programs/rust-motd.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/programs/rust-motd.nix b/nixos/modules/programs/rust-motd.nix index d5f1820ba7523..7fd89e1658efc 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 |