openssh greeting fixes

This commit is contained in:
William 2025-11-03 12:34:40 -03:00
parent 447778eb46
commit fe091504d0
4 changed files with 24 additions and 8 deletions

View file

@ -4,10 +4,8 @@
services.openssh = {
enable = true;
settings.PermitRootLogin = "no";
extraConfig = ''
PrintLastLog no
'';
};
programs.fish.interactiveShellInit = ''
if set -q SSH_CONNECTION
neofetch
end
'';
}

View file

@ -25,6 +25,16 @@
programs = {
command-not-found.enable = false;
fish.enable = true;
fish = {
enable = true;
interactiveShellInit = ''
set fish_greeting
if set -q SSH_CONNECTION
export TERM=xterm-256color
clear
fastfetch
end
'';
};
};
}