forked from jan-leila/nix-config
		
	moved openssh config to common
This commit is contained in:
		
							parent
							
								
									513cc95af7
								
							
						
					
					
						commit
						dbd4407754
					
				
					 2 changed files with 13 additions and 11 deletions
				
			
		|  | @ -29,6 +29,19 @@ | |||
| 
 | ||||
|   users.groups.users = {}; | ||||
| 
 | ||||
|   services = { | ||||
|     openssh = { | ||||
|       enable = true; | ||||
|       ports = [ 22 ]; | ||||
|       settings = { | ||||
|         PasswordAuthentication = false; | ||||
|         AllowUsers = [ "leyla" ]; # Allows all users by default. Can be [ "user1" "user2" ] | ||||
|         UseDns = true; | ||||
|         X11Forwarding = false; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   sops = { | ||||
|     defaultSopsFile = ../../secrets/secrets.yaml; | ||||
|     defaultSopsFormat = "yaml"; | ||||
|  |  | |||
|  | @ -51,17 +51,6 @@ | |||
|       excludePackages = [ pkgs.xterm ]; | ||||
|     }; | ||||
| 
 | ||||
|     openssh = { | ||||
|       enable = true; | ||||
|       ports = [ 22 ]; | ||||
|       settings = { | ||||
|         PasswordAuthentication = false; | ||||
|         AllowUsers = [ "leyla" ]; # Allows all users by default. Can be [ "user1" "user2" ] | ||||
|         UseDns = true; | ||||
|         X11Forwarding = false; | ||||
|       }; | ||||
|     }; | ||||
| 
 | ||||
|     nfs.server = { | ||||
|       enable = true; | ||||
|       exports = '' | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue