summary refs log blame commit diff
path: root/nixos/modules/virtualisation/lxc-container.nix
blob: 0208787e7795c700f1b99eed83f1819749482061 (plain) (tree)
1
2
3
4
5
6
7





                           
                                                                                        


















                                                                  
{ config, pkgs, 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.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 ];
}