--- /dev/null
+{ config, pkgs, lib, hostName, ... }:
+{
+ virtualisation.docker = {
+ enable = true;
+ storageDriver = "zfs";
+ daemon.settings = {
+ storage-opts = [
+ "zfs.fsname=${hostName}/var/lib/docker"
+ ];
+ data-root = "/var/lib/docker";
+ experimental = true;
+ fixed-cidr-v6 = "fd00::/80";
+ ipv6 = true;
+ metrics-addr = "0.0.0.0:9323";
+ # For Windows
+ userland-proxy = false;
+ };
+ /*
+ rootless = {
+ enable = true;
+ setSocketVariable = true;
+ };
+ */
+ };
+ users.users.julm.extraGroups = [ "docker" ];
+}