From 08715adf4df604afdafb1333032b7c1495bca3d5 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 9 Feb 2022 17:50:29 -0800 Subject: systems: add a MoTD --- modules/systems/default.nix | 1 + modules/systems/motd.nix | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 modules/systems/motd.nix (limited to 'modules') diff --git a/modules/systems/default.nix b/modules/systems/default.nix index a543fe5..27fb53b 100644 --- a/modules/systems/default.nix +++ b/modules/systems/default.nix @@ -2,6 +2,7 @@ { imports = [ + ./motd.nix ./nix.nix ./software.nix ./ssh.nix diff --git a/modules/systems/motd.nix b/modules/systems/motd.nix new file mode 100644 index 0000000..898d03f --- /dev/null +++ b/modules/systems/motd.nix @@ -0,0 +1,12 @@ +{config, ...}: +{ + users.motd = '' + Welcome + - This machine is managed with nix + + Hostname: ${config.networking.hostName} + OS: NixOS ${config.system.nixos.release} (${config.system.nixos.codeName}) + Version: ${config.system.nixos.version} + Kernel: ${config.boot.kernelPackages.kernel.version} + ''; +} -- cgit 1.4.1