split ssh away from nix

This commit is contained in:
jopejoe1 2024-01-11 00:19:11 +01:00
parent 08e8414488
commit dff0d40777
9 changed files with 26 additions and 13 deletions

18
modules/ssh/default.nix Normal file
View file

@ -0,0 +1,18 @@
{ config, lib, pkgs, self, ... }:
let cfg = config.jopejoe1.ssh;
in {
options.jopejoe1.ssh = { enable = lib.mkEnableOption "Enable ssh"; };
config = lib.mkIf cfg.enable {
services.openssh = {
enable = true;
banner = "Hackers are in Your System!!!";
settings = {
PasswordAuthentication = false;
PermitRootLogin = "prohibit-password";
};
};
};
}