No description
  • Zig 71.4%
  • Nix 28.6%
Find a file
2026-03-31 00:00:10 -04:00
src less syscalls! 2026-03-30 22:11:30 -04:00
.gitignore got hte zig-out path wrong in the gitignore 2025-11-05 13:39:39 -05:00
build.zig no more libc 2026-03-30 19:22:33 -04:00
build.zig.zon inital commit, still got some memory leaks but who cares 2025-11-05 13:26:29 -05:00
build.zig.zon.nix add a nix flake 2026-03-30 23:55:58 -04:00
flake.lock add a nix flake 2026-03-30 23:55:58 -04:00
flake.nix add a nix flake 2026-03-30 23:55:58 -04:00
LICENSE Initial commit 2025-11-05 18:30:55 +00:00
README.md add info in the readme for the nix flake 2026-03-31 00:00:10 -04:00

ZMOTD - zig motd

Literally just a motd setter for my servers.

All this program does it gather system information and prints it as pretty as possible. It's configured in toml and the default layout is as follows:

entries = [
  { m = "hostname", f = "fig" }, # m for module name, f for format name
  { m = "distro" },
  { m = "kernel" },
  { m = "load" },
  { m = "uptime" },
]

which looks like this:

 __ ___ _ ___  ___  ___ _ __
 \ V / '_/ _ \/ _ \/ _ \ '  \
  \_/|_| \___/\___/\___/_|_|_|

Distro: Void
Kernel: 6.16.6_1
Load: 0.13, 0.29, 0.49
Uptime: 1 week, 6 days, 23 hours, 26 minutes

To actually set your motd just write the output to /etc/motd or wherever your system stores it.

If you'd like to specify a config file to use just pass in the path as the only argument.

Using the nix flake

Add the following import:

zmotd.url = "git+https://git.squi.bid/squibid/zmotd";

Add the module:

inputs.zmotd.nixosModules.default

Now you should be able to use services.zmotd! All the options are available in the flake.nix