From 9d60cbf230330d062799bb43b18c1f9fb374ec2c Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 12 Aug 2025 10:02:16 -0700 Subject: add profile for motd --- profiles/core/motd.nix | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 profiles/core/motd.nix (limited to 'profiles/core/motd.nix') diff --git a/profiles/core/motd.nix b/profiles/core/motd.nix new file mode 100644 index 0000000..01575e1 --- /dev/null +++ b/profiles/core/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