Commit 60199bb497a9

Vincent Demeester <vincent@sbr.pm>
2020-06-10 10:03:04
systems/core: add a motd ๐Ÿ˜›
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent a748592
Changed files (2)
systems
systems/modules/core/default.nix
@@ -4,6 +4,7 @@
     ./home-manager.nix
     ./nix.nix
     ./nur.nix
+    ./users.nix
   ];
 
   boot = {
systems/modules/core/users.nix
@@ -0,0 +1,13 @@
+{ config, ... }:
+{
+  users.motd = with config; ''
+    Welcome to ${networking.hostName}
+
+    - This machine is managed by NixOS
+    - All changes are futile
+
+    OS:      Nixos ${system.nixos.release} (${system.nixos.codeName})
+    Version: ${system.nixos.version}
+    Kernel:  ${boot.kernelPackages.kernel.version}
+  '';
+}