summary refs log tree commit diff
path: root/nixos/modules/virtualisation/lxc-container.nix
blob: e47bd59dc016bb4a194b9aa31069b3934e0ac9cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib, ... }:

with lib;

{
  imports = [
    ../profiles/docker-container.nix # FIXME, shouldn't include something from profiles/
  ];

  # Allow the user to login as root without password.
  users.users.root.initialHashedPassword = mkOverride 150 "";

  # Some more help text.
  services.getty.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 ];
}