From ec9e80b4df64c5a8823a48a20f770bf7f890b7e4 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Sun, 2 Apr 2023 20:29:50 +0200 Subject: PAM: try adding stdout --- modules/base.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/base.nix b/modules/base.nix index 0f199e5..537e7e6 100755 --- a/modules/base.nix +++ b/modules/base.nix @@ -62,6 +62,7 @@ PasswordAuthentication = false; GatewayPorts = "yes"; KbdInteractiveAuthentication = false; + UsePAM = true; }; startWhenNeeded = true; }; @@ -94,7 +95,8 @@ security.pam.services.sshd.text = lib.mkAfter '' #login script - auth [default=ignore] pam_exec.so ${pkgs.writeShellScript "login-banner" '' + auth optional pam_exec.so stdout ${pkgs.writeShellScript "login-banner" '' + echo 'Welcome!' ${pkgs.chafa}/bin/chafa https://raw.githubusercontent.com/spacebarchat/spacebarchat/master/branding/svg/Spacebar__Logo-Blue.svg --fg-only -s 80 -O 9 -w 9 ''} #Account management. -- cgit 1.4.1