Overhaul luna complete
This commit is contained in:
parent
06f5971965
commit
6f9fdca876
110 changed files with 2408 additions and 2129 deletions
41
modules/network/ssh.nix
Normal file
41
modules/network/ssh.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
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 = {
|
||||
services.openssh = {
|
||||
banner = ''
|
||||
==================================================================
|
||||
=== ==== ==== ========= ================================= ===
|
||||
=== ==== ==== ========= ================================= ===
|
||||
=== ==== ==== ========= ================================= ===
|
||||
=== ==== ==== === === === ==== === = = ==== === ===
|
||||
=== == == === = == == = == == == = == ===
|
||||
==== == == === == == ===== = == = = == == ===
|
||||
==== == == === ===== == ===== = == = = == ==========
|
||||
===== == ==== = == == = == = == = = == = == ===
|
||||
====== ==== ====== === === ==== === = = === === ===
|
||||
==================================================================
|
||||
'';
|
||||
|
||||
enable = true;
|
||||
settings = {
|
||||
PermitRootLogin = "no";
|
||||
PasswordAuthentication = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue