diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-04-02 20:29:50 +0200 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-06-05 15:49:39 +0200 |
commit | ec9e80b4df64c5a8823a48a20f770bf7f890b7e4 (patch) | |
tree | b76ef1b0fcbe3d11de8ed563b8f1be656336b70c /modules | |
parent | Reimplement pam (diff) | |
download | Spacebar-Open-Infrastructure-ec9e80b4df64c5a8823a48a20f770bf7f890b7e4.tar.xz |
PAM: try adding stdout
Diffstat (limited to 'modules')
-rwxr-xr-x | modules/base.nix | 4 |
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. |