From 35247f7b4a736bcd6d1a31d5d30040e9d29a0f77 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Wed, 2 Aug 2023 15:23:52 +0000 Subject: [PATCH] Add fancy ssh banner --- modules/beatific.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/beatific.nix b/modules/beatific.nix index d0291a5..ced1707 100644 --- a/modules/beatific.nix +++ b/modules/beatific.nix @@ -78,6 +78,16 @@ in { (mkIf cfg.defaults.ssh { services.openssh.enable = true; + services.openssh.banner = '' + ____ ______ _______ _____ ______ _____ ______ ./|,,/| + | _ \| ____| /\ |__ __|_ _| ____|_ _|/ ____/ < o o| + | |_) | |__ / \ | | | | | |__ | | | | <\ ( | + | _ <| __| / /\ \ | | | | | __| | | | | <\\ |\ | + | |_) | |____/ ____ \ | | _| |_| | _| |_| |___<\\\ |(__) + |____/|_____/_/ \_\|_| |_____|_| |_____|\_____|\\ | + + ''; + networking.firewall.allowPing = true; networking.firewall.allowedTCPPorts = [ 22 ]; })