nixpkgs/nixos/modules/virtualisation/docker-image.nix

20 lines
433 B
Nix
Raw Normal View History

{ config, pkgs, ... }:
{
imports = [
2015-04-19 21:38:22 +02:00
../profiles/docker-container.nix # FIXME, shouldn't include something from profiles/
];
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;
}