summary refs log tree commit diff stats
path: root/system/settings/programs/docker.nix
blob: 29c2ac73e8524a192b2472af48778916d2944406 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ pkgs, ... }: {
  virtualisation.containers = {
    enable = true;
  };
  virtualisation.docker = {
    enable = false;
    storageDriver = "overlay2";
    rootless = {
      enable = true;
      setSocketVariable = true;
      daemon.settings = {
        fixed-cidr-v6 = "fd0c::/80";
        ipv6 = true;
        dns = [
          "1.0.0.1"
          "1.1.1.1"
        ];
      };
    };
  };
  # TODO: autoPrune doesn't affect rootless
  # systemd.timers.docker-prune.timerConfig = {
  #   Persistent = true;
  #   RandomizedDelaySec = 1800;
  # };
}