blob: 9dea59692469b140e500c494c63b6c977692e4c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{ 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;
}];
registry-mirrors = [
"https://huecker.io"
];
};
};
};
}
|