Skip to content

Commit

Permalink
fix: use motd for displaying the banner
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkolenz committed Dec 13, 2023
1 parent 41cdc92 commit fe78201
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
10 changes: 10 additions & 0 deletions modules/banner.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{pkgs, ...}: {
environment.etc."motd".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
'';
}
7 changes: 0 additions & 7 deletions modules/ssh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,5 @@
environment.etc."ssh/sshd_config.d/nixos.conf".text = ''
PermitRootLogin no
X11Forwarding no
Banner /etc/sshd_banner.txt
PrintMotd no
'';
environment.etc."sshd_banner.txt".text = ''
Welcome to our GPU server! Please check out the documentation:
https://github.com/wi2trier/gpu-server
'';
}

0 comments on commit fe78201

Please sign in to comment.