2018-07-20 21:56:59 +01:00
|
|
|
{ lib, ... }:
|
2014-12-11 21:58:17 +00:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
2015-04-19 20:38:22 +01: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.
|
2018-06-30 00:58:35 +01:00
|
|
|
users.users.root.initialHashedPassword = mkOverride 150 "";
|
2014-12-11 21:58:17 +00:00
|
|
|
|
|
|
|
# Some more help text.
|
2021-01-05 08:25:53 +00:00
|
|
|
services.getty.helpLine =
|
2014-12-11 21:58:17 +00:00
|
|
|
''
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
}
|