]> Git — Sourcephile - sourcephile-nix.git/blob - hosts/losurdo/docker.nix
losurdo: docker: enable service
[sourcephile-nix.git] / hosts / losurdo / docker.nix
1 { config, pkgs, lib, hostName, ... }:
2 {
3 virtualisation.docker = {
4 enable = true;
5 storageDriver = "zfs";
6 daemon.settings = {
7 storage-opts = [
8 "zfs.fsname=${hostName}/var/lib/docker"
9 ];
10 data-root = "/var/lib/docker";
11 experimental = true;
12 fixed-cidr-v6 = "fd00::/80";
13 ipv6 = true;
14 metrics-addr = "0.0.0.0:9323";
15 # For Windows
16 userland-proxy = false;
17 };
18 /*
19 rootless = {
20 enable = true;
21 setSocketVariable = true;
22 };
23 */
24 };
25 users.users.julm.extraGroups = [ "docker" ];
26 }