Skip to content

Commit

Permalink
fix: use banner in ssh config
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkolenz committed Dec 13, 2023
1 parent 4e2b302 commit 08c2b0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
11 changes: 4 additions & 7 deletions modules/banner.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{pkgs, ...}: {
environment.etc."profile.d/gpu-server-banner.sh".text = ''
echo "Welcome to our GPU server!"
echo "Please check out our documentation:"
tput bold
echo "https://github.com/wi2trier/gpu-server"
tput sgr0
echo
environment.etc."banner".text = ''
Welcome to our GPU server! Please check out the documentation:
https://github.com/wi2trier/gpu-server
'';
}
1 change: 1 addition & 0 deletions modules/ssh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
environment.etc."ssh/ssh_config.d/nixos".text = ''
PermitRootLogin no;
X11Forwarding no;
Banner /etc/banner;
'';
}

0 comments on commit 08c2b0a

Please sign in to comment.