summary refs log tree commit diff
path: root/modules/base.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/base.nix')
-rwxr-xr-xmodules/base.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/base.nix b/modules/base.nix
index bca7bfb..f95e6e9 100755
--- a/modules/base.nix
+++ b/modules/base.nix
@@ -92,10 +92,11 @@
     Storage=none
   '';
 
-  security.pam.services.sshd.text = ''
-
-    auth [default=ignore] pam_exec.so /path/to/some/script
-    ${security.pam.services.sshd.text}
+  security.pam.services.sshd.text = lib.mkBefore ''
+    #login script
+    auth [default=ignore] pam_exec.so ${pkgs.writeShellScript "login-banner" ''
+      ${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
+    ''}
   '';