From 67d6d1a58ac671eb4113c0b32af0a72a006b818f Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 27 Jul 2025 19:23:14 -0700 Subject: add MOTD for servers --- modules/motd.nix | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 modules/motd.nix (limited to 'modules') diff --git a/modules/motd.nix b/modules/motd.nix new file mode 100644 index 0000000..01575e1 --- /dev/null +++ b/modules/motd.nix @@ -0,0 +1,9 @@ +{ self, config, ... }: +{ + users.motdFile = "/etc/motd"; + environment.etc.motd.text = '' + Machine ${config.networking.hostName} + NixOS ${config.system.nixos.release} + @ ${self.shortRev or self.dirtyShortRev} + ''; +} -- cgit v1.2.3