17 lines
		
	
	
	
		
			303 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			303 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| {
 | |
|   flake.modules.nixos.server =
 | |
|     { ... }:
 | |
|     {
 | |
|       services.openssh = {
 | |
|         enable = true;
 | |
|         settings = {
 | |
|           PasswordAuthentication = false;
 | |
|           KbdInteractiveAuthentication = false;
 | |
|         };
 | |
|       };
 | |
| 
 | |
|       services.fail2ban = {
 | |
|         enable = true;
 | |
|       };
 | |
|     };
 | |
| }
 |