1{ lib, ... }:
2
3with lib;
4
5{
6 imports = [
7 ../profiles/docker-container.nix # FIXME, shouldn't include something from profiles/
8 ];
9
10 # Allow the user to login as root without password.
11 users.users.root.initialHashedPassword = mkOverride 150 "";
12
13 # Some more help text.
14 services.mingetty.helpLine =
15 ''
16
17 Log in as "root" with an empty password.
18 '';
19
20 # Containers should be light-weight, so start sshd on demand.
21 services.openssh.enable = mkDefault true;
22 services.openssh.startWhenNeeded = mkDefault true;
23
24 # Allow ssh connections
25 networking.firewall.allowedTCPPorts = [ 22 ];
26}