38 lines
1.2 KiB
Nix
38 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}: let
|
|
inherit (lib) mkEnableOption mkIf;
|
|
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;
|
|
};
|
|
};
|
|
};
|
|
}
|