nix-conf/modules/ssh/default.nix

19 lines
403 B
Nix
Raw Normal View History

2024-01-11 00:19:11 +01:00
{ 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;
2024-01-30 14:55:47 +01:00
banner = "Hackers are in Your System!!!\n";
2024-01-11 00:19:11 +01:00
settings = {
PasswordAuthentication = false;
PermitRootLogin = "prohibit-password";
};
};
};
}