From f348ee2e3a08b02d42a86ee3d8bbb92b39ef9c48 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Sat, 2 Mar 2024 14:29:41 +0300 Subject: [PATCH] Update motd --- .gitignore | 2 ++ modules/openssh.nix | 38 ------------------------------------- modules/openssh/default.nix | 27 ++++++++++++++++++++++++++ modules/openssh/motd.hist | 21 ++++++++++++++++++++ 4 files changed, 50 insertions(+), 38 deletions(-) delete mode 100644 modules/openssh.nix create mode 100644 modules/openssh/default.nix create mode 100644 modules/openssh/motd.hist diff --git a/.gitignore b/.gitignore index 1f338dd..9d392ca 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ !modules/ !modules/hyprland/ !modules/nushell/ +!modules/openssh/ !lib/ @@ -22,6 +23,7 @@ !*.age !*.gif +!*.hist !*.md !*.nix !*.nu diff --git a/modules/openssh.nix b/modules/openssh.nix deleted file mode 100644 index 34b8799..0000000 --- a/modules/openssh.nix +++ /dev/null @@ -1,38 +0,0 @@ -{ ulib, ... }: with ulib; - -serverSystemConfiguration { - programs.mosh = enabled { - openFirewall = true; - }; - - services.openssh = enabled { - banner = '' - _________________________________________ - / You will pay for your sins. If you have \ - | already paid, please disregard this | - \ message. / - ----------------------------------------- - \ / \ //\ - \ |\___/| / \// \\ - /0 0 \__ / // | \ \ - / / \/_/ // | \ \ - @_^_@'/ \/_ // | \ \ - //_^_/ \/_ // | \ \ - ( //) | \/// | \ \ - ( / /) _|_ / ) // | \ _\ - ( // /) '/,_ _ _/ ( ; -. | _ _\.-~ .-~~~^-. - (( / / )) ,-{ _ `-.|.-~-. .~ `. - (( // / )) '/\ / ~-. _ .-~ .-~^-. \ - (( /// )) `. { } / \ \ - (( / )) .----~-.\ \-' .~ \ `. \^-. - ///.----..> \ _ -~ `. ^-` ^-_ - ///-._ _ _ _ _ _ _}^ - - - - ~ ~-- ,.-~ - /.-~ - ''; - ports = [ 2222 ]; - settings = { - KbdInteractiveAuthentication = false; - PasswordAuthentication = false; - }; - }; -} diff --git a/modules/openssh/default.nix b/modules/openssh/default.nix new file mode 100644 index 0000000..6a3aaa0 --- /dev/null +++ b/modules/openssh/default.nix @@ -0,0 +1,27 @@ +{ ulib, ... }: with ulib; + +serverSystemConfiguration { + programs.mosh = enabled { + openFirewall = true; + }; + + services.openssh = enabled { + banner = '' + _______________________________________ + / If God doesn't destroy San Francisco, \ + | He should apologize to Sodom and | + \ Gomorrah. / + --------------------------------------- + \ ^__^ + \ (oo)\_______ + (__)\ )\/\ + ||----w | + || || + ''; + ports = [ 2222 ]; + settings = { + KbdInteractiveAuthentication = false; + PasswordAuthentication = false; + }; + }; +} diff --git a/modules/openssh/motd.hist b/modules/openssh/motd.hist new file mode 100644 index 0000000..3897daa --- /dev/null +++ b/modules/openssh/motd.hist @@ -0,0 +1,21 @@ + _________________________________________ +/ You will pay for your sins. If you have \ +| already paid, please disregard this | +\ message. / + ----------------------------------------- + \ / \ //\ + \ |\___/| / \// \\ + /0 0 \__ / // | \ \ + / / \/_/ // | \ \ + @_^_@'/ \/_ // | \ \ + //_^_/ \/_ // | \ \ + ( //) | \/// | \ \ + ( / /) _|_ / ) // | \ _\ + ( // /) '/,_ _ _/ ( ; -. | _ _\.-~ .-~~~^-. + (( / / )) ,-{ _ `-.|.-~-. .~ `. + (( // / )) '/\ / ~-. _ .-~ .-~^-. \ + (( /// )) `. { } / \ \ + (( / )) .----~-.\ \-' .~ \ `. \^-. + ///.----..> \ _ -~ `. ^-` ^-_ + ///-._ _ _ _ _ _ _}^ - - - - ~ ~-- ,.-~ + /.-~