system/settings/programs/docker.nix (view raw)
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; # }; } |