17 lines
		
	
	
	
		
			349 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			349 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| { config, lib, pkgs, ... }:
 | |
| 
 | |
| let
 | |
|   cfg = config.sisyphus.services.openssh;
 | |
| in {
 | |
|   options.sisyphus.services.openssh.enable = lib.mkEnableOption "OpenSSH";
 | |
| 
 | |
|   config = lib.mkIf cfg.enable {
 | |
|     services.openssh = {
 | |
|       enable = true;
 | |
|       settings = {
 | |
|         PasswordAuthentication = false;
 | |
|         PermitRootLogin = "no";
 | |
|       };
 | |
|     };
 | |
|   };
 | |
| }
 |