| 
									
										
										
										
											2018-07-20 20:56:59 +00:00
										 |  |  | { lib, ... }: | 
					
						
							| 
									
										
										
										
											2014-12-11 22:58:17 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | with lib; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   imports = [ | 
					
						
							| 
									
										
										
										
											2015-04-19 21:38:22 +02:00
										 |  |  |     ../profiles/docker-container.nix # FIXME, shouldn't include something from profiles/ | 
					
						
							| 
									
										
										
										
											2014-12-11 22:58:17 +01:00
										 |  |  |   ]; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   # Allow the user to login as root without password. | 
					
						
							| 
									
										
										
										
											2018-06-30 01:58:35 +02:00
										 |  |  |   users.users.root.initialHashedPassword = mkOverride 150 ""; | 
					
						
							| 
									
										
										
										
											2014-12-11 22:58:17 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |   # Some more help text. | 
					
						
							|  |  |  |   services.mingetty.helpLine = | 
					
						
							|  |  |  |     ''
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       Log in as "root" with an empty password. | 
					
						
							|  |  |  |     '';
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   # Containers should be light-weight, so start sshd on demand. | 
					
						
							|  |  |  |   services.openssh.enable = mkDefault true; | 
					
						
							|  |  |  |   services.openssh.startWhenNeeded = mkDefault true; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   # Allow ssh connections | 
					
						
							|  |  |  |   networking.firewall.allowedTCPPorts = [ 22 ]; | 
					
						
							|  |  |  | } |