summary refs log tree commit diff
path: root/nixos/modules/virtualisation/docker-image.nix
blob: 0195ca5c6dce2f34bce9040ef878c8b8e5c8b62a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ config, pkgs, ... }:

{
  imports = [
    ../profiles/container.nix
  ];

  boot.postBootCommands =
    ''
      # Set virtualisation to docker
      echo "docker" > /run/systemd/container
    '';

  # Iptables do not work in Docker.
  networking.firewall.enable = false;

  # Socket activated ssh presents problem in Docker.
  services.openssh.startWhenNeeded = false;
}