{ inputs, outputs, lib, config, pkgs, ... }: let inherit (lib) mkEnableOption mkIf mkOption types; cfg = config.horseman.network.ssh; in { options = { horseman.network.ssh = { enable = mkEnableOption ""; }; }; config = mkIf cfg.enable { services.openssh = { banner = '' ================================================================== === ==== ==== ========= ================================= === === ==== ==== ========= ================================= === === ==== ==== ========= ================================= === === ==== ==== === === === ==== === = = ==== === === === == == === = == == = == == == = == === ==== == == === == == ===== = == = = == == === ==== == == === ===== == ===== = == = = == ========== ===== == ==== = == == = == = == = = == = == === ====== ==== ====== === === ==== === = = === === === ================================================================== ''; enable = true; settings = { PermitRootLogin = "no"; PasswordAuthentication = false; }; }; }; }