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