5 ../profiles/docker-container.nix # FIXME, shouldn't include something from profiles/
8 boot.postBootCommands =
10 # Set virtualisation to docker
11 echo "docker" > /run/systemd/container
14 # Iptables do not work in Docker.
15 networking.firewall.enable = false;
17 # Socket activated ssh presents problem in Docker.
18 services.openssh.startWhenNeeded = false;
25 # nixos = import <nixpkgs/nixos> {
26 # configuration = ./configuration.nix;
27 # system = "x86_64-linux";
30 # nixos.config.system.build.tarball
33 # { pkgs, config, lib, ... }:
36 # <nixpkgs/nixos/modules/virtualisation/docker-image.nix>
37 # <nixpkgs/nixos/modules/installer/cd-dvd/channel.nix>
40 # documentation.doc.enable = false;
42 # environment.systemPackages = with pkgs; [
51 # $ nix-build default.nix
53 # $ docker import result/tarball/nixos-system-*.tar.xz nixos-docker
55 # $ docker run --privileged -it nixos-docker /init
56 # Log into the container
57 # $ docker exec -it <container-name> /run/current-system/sw/bin/bash