about summary refs log tree commit diff
path: root/nixos/modules/programs
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2023-09-20 22:16:03 +0200
committerMaximilian Bosch <maximilian@mbosch.me>2023-09-20 22:16:03 +0200
commit0a71cf07a82eacd0a618fe7ba7016f7de5f5c2f5 (patch)
treee8dc40223454d9c92ae80b45192cb591c25c1a06 /nixos/modules/programs
parent86bb2474332bcaec8ad0ebfa0128a860d1434309 (diff)
downloadnixlib-0a71cf07a82eacd0a618fe7ba7016f7de5f5c2f5.tar
nixlib-0a71cf07a82eacd0a618fe7ba7016f7de5f5c2f5.tar.gz
nixlib-0a71cf07a82eacd0a618fe7ba7016f7de5f5c2f5.tar.bz2
nixlib-0a71cf07a82eacd0a618fe7ba7016f7de5f5c2f5.tar.lz
nixlib-0a71cf07a82eacd0a618fe7ba7016f7de5f5c2f5.tar.xz
nixlib-0a71cf07a82eacd0a618fe7ba7016f7de5f5c2f5.tar.zst
nixlib-0a71cf07a82eacd0a618fe7ba7016f7de5f5c2f5.zip
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.nix1
1 files changed, 1 insertions, 0 deletions
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