2014-12-11 21:58:17 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
2015-04-19 19:38:22 +00:00
|
|
|
../profiles/docker-container.nix # FIXME, shouldn't include something from profiles/
|
2014-12-11 21:58:17 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Allow the user to login as root without password.
|
|
|
|
users.extraUsers.root.initialHashedPassword = mkOverride 150 "";
|
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
}
|