From 33e68ade7b733074da2d9fff55d7435e560d065c Mon Sep 17 00:00:00 2001 From: hexchen Date: Sun, 29 Nov 2020 12:23:32 +0000 Subject: [PATCH] hainich: move docker to zfs driver --- configuration/hosts/hainich/hardware.nix | 5 +++++ configuration/hosts/hainich/services/gitlab-runner.nix | 2 ++ 2 files changed, 7 insertions(+) diff --git a/configuration/hosts/hainich/hardware.nix b/configuration/hosts/hainich/hardware.nix index fd1afe7..587dc81 100644 --- a/configuration/hosts/hainich/hardware.nix +++ b/configuration/hosts/hainich/hardware.nix @@ -25,6 +25,11 @@ fsType = "zfs"; }; + fileSystems."/var/lib/docker" = + { device = "dpool/docker"; + fsType = "zfs"; + }; + fileSystems."/var/lib/gitlab-runner" = { device = "dpool/gitlab-runner"; fsType = "zfs"; diff --git a/configuration/hosts/hainich/services/gitlab-runner.nix b/configuration/hosts/hainich/services/gitlab-runner.nix index d49b363..cfecd1e 100644 --- a/configuration/hosts/hainich/services/gitlab-runner.nix +++ b/configuration/hosts/hainich/services/gitlab-runner.nix @@ -22,4 +22,6 @@ extraGroups = [ "docker" ]; isSystemUser = true; }; + + virtualisation.docker.storageDriver = "zfs"; }