2014-12-11 21:58:17 +00:00
|
|
|
{ config, pkgs, ... }:
|
2014-08-25 00:48:02 +00:00
|
|
|
|
2014-12-11 21:58:17 +00:00
|
|
|
{
|
|
|
|
imports = [
|
2015-04-19 19:38:22 +00:00
|
|
|
../profiles/docker-container.nix # FIXME, shouldn't include something from profiles/
|
2014-12-11 21:58:17 +00:00
|
|
|
];
|
2014-08-25 00:48:02 +00:00
|
|
|
|
|
|
|
boot.postBootCommands =
|
|
|
|
''
|
|
|
|
# Set virtualisation to docker
|
2014-12-11 21:58:17 +00:00
|
|
|
echo "docker" > /run/systemd/container
|
2014-08-25 00:48:02 +00:00
|
|
|
'';
|
|
|
|
|
2014-11-03 11:30:54 +00:00
|
|
|
# Iptables do not work in Docker.
|
2014-08-25 00:48:02 +00:00
|
|
|
networking.firewall.enable = false;
|
|
|
|
|
2014-11-03 11:30:54 +00:00
|
|
|
# Socket activated ssh presents problem in Docker.
|
2014-08-25 00:48:02 +00:00
|
|
|
services.openssh.startWhenNeeded = false;
|
|
|
|
}
|