From 13a2335cafbf1316c46475c86b567ccd18c5a505 Mon Sep 17 00:00:00 2001 From: Daniel Frank Date: Fri, 28 Jun 2019 17:37:47 +0200 Subject: [PATCH] Add a motd --- configuration.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/configuration.nix b/configuration.nix index 31af881..04e6101 100644 --- a/configuration.nix +++ b/configuration.nix @@ -102,6 +102,18 @@ users.extraUsers.root = { hashedPassword = "!"; }; + users.motd = with config; '' + Welcome to ${networking.hostName}.${networking.domain} + + - This server is NixOS + - All changes must be done through the git repository at + /etc/nixos or https://github.com/freifunkhamburg/mail2-nixos-config/ + - Other changes will be lost + + OS: NixOS ${system.nixos.release} (${system.nixos.codeName}) + Version: ${system.nixos.version} + Kernel: ${boot.kernelPackages.kernel.version} + ''; # This value determines the NixOS release with which your system is to be # compatible, in order to avoid breaking some software such as database