aboutsummaryrefslogtreecommitdiff
path: root/modules/systems/motd.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-02-09 17:50:29 -0800
committerFranck Cuny <franck@fcuny.net>2022-02-09 17:50:29 -0800
commit08715adf4df604afdafb1333032b7c1495bca3d5 (patch)
treee99a9361fbe4cb8b55a40028e8637145c9032607 /modules/systems/motd.nix
parentmodules: swap capslock for control (diff)
downloadinfra-08715adf4df604afdafb1333032b7c1495bca3d5.tar.gz
systems: add a MoTD
Diffstat (limited to 'modules/systems/motd.nix')
-rw-r--r--modules/systems/motd.nix12
1 files changed, 12 insertions, 0 deletions
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}
+ '';
+}