mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
19 lines
433 B
Nix
19 lines
433 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
../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;
|
|
}
|