summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/base.nix4
1 files changed, 3 insertions, 1 deletions
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.