initial setup
This commit is contained in:
		
							
								
								
									
										12
									
								
								root/base/ssh/default.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								root/base/ssh/default.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
			
		||||
# SSH settings. Defined authorized internal key and enables key authentication.
 | 
			
		||||
{ user, ... }:
 | 
			
		||||
{
 | 
			
		||||
    services.openssh = {
 | 
			
		||||
        enable = true;
 | 
			
		||||
        settings.PasswordAuthentication = false;
 | 
			
		||||
        settings.KbdInteractiveAuthentication = false;
 | 
			
		||||
    };
 | 
			
		||||
    users.users.${user}.openssh.authorizedKeys.keys = [
 | 
			
		||||
        "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAxNhl9lAA7SGpFv0/YhIrL+C1nrODGsvpXlevjpOP9d Interne Infrastruktur"
 | 
			
		||||
    ];
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user