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

@ -24,7 +24,12 @@ in
database.createLocally = true; database.createLocally = true;
maxUploadSize = "16G"; maxUploadSize = "16G";
extraApps = { extraApps = {
inherit (config.services.nextcloud.package.packages.apps) calendar contacts notes; inherit (config.services.nextcloud.package.packages.apps)
calendar
contacts
notes
tasks
;
}; };
extraAppsEnable = true; extraAppsEnable = true;
caching = { caching = {

View file

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

View file

@ -25,6 +25,16 @@
programs = { programs = {
command-not-found.enable = false; 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
'';
};
}; };
} }

View file

@ -3,7 +3,10 @@
{ {
programs.fish = { programs.fish = {
enable = true; enable = true;
interactiveShellInit = "${lib.getExe pkgs.nix-your-shell} fish | source"; interactiveShellInit = ''
set fish_greeting
${lib.getExe pkgs.nix-your-shell} fish | source
'';
loginShellInit = "${lib.getExe pkgs.nix-your-shell} fish | source"; loginShellInit = "${lib.getExe pkgs.nix-your-shell} fish | source";
plugins = [ plugins = [
{ {