From b76ad56fc98a03514fa897de6ed72d97a3f7b465 Mon Sep 17 00:00:00 2001 From: Mel Date: Sat, 2 Mar 2024 18:47:17 +0000 Subject: MOTD on SSH login --- configuration.nix | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'configuration.nix') diff --git a/configuration.nix b/configuration.nix index 81df308..bf8b46c 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,9 +1,9 @@ -{ pkgs, ... }: +{ pkgs, lib, ... }: let - util = import ./util.nix; + util = import ./util.nix { inherit lib; }; - me = import ./me.nix { inherit util; }; + me = util.checkMe (import ./me.nix); security = import ./security.nix; in { @@ -33,6 +33,14 @@ in hashedPassword = security.password; }; + users.motd = '' + +/^ /^ +\ ' ' 7 < Hi, I'm ${util.titleCase me.name} +/ \ + + ''; + networking = { hostName = me.name; @@ -85,7 +93,12 @@ in vimrcFile = ./configs/.vimrc; }; }; - fish.enable = true; + fish = { + enable = true; + interactiveShellInit = '' + set fish_greeting + ''; + }; git.enable = true; tmux.enable = true; }; -- cgit 1.4.1