aboutsummaryrefslogtreecommitdiff
path: root/nixos/nixosModules/docker.nix
blob: 0536d7ef1099257e5c3f8cb2ed4552cf3fbd3c20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ pkgs, config, lib, ... }:

{
  options = {
    docker.enable = lib.mkEnableOption "enable docker";
  };
  config = lib.mkIf config.docker.enable {
    virtualisation.docker = {
      enable = true;
      liveRestore = true;
      daemon.settings = {
        bip = "172.20.0.1/16";
        default-address-pools = [{
          base = "172.20.0.0/8";
          size = 16;
        }];
      };
    };
  };
}