From 0a9cf686afaeb9735580f13a4b55c2800e1a9a21 Mon Sep 17 00:00:00 2001 From: coolneng Date: Tue, 23 Nov 2021 10:31:12 +0100 Subject: [PATCH] Set ZFS storage for Podman --- modules/development.nix | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/modules/development.nix b/modules/development.nix index f81ef1f..a994a54 100644 --- a/modules/development.nix +++ b/modules/development.nix @@ -5,8 +5,20 @@ environment.pathsToLink = [ "/share/nix-direnv" ]; # Set up podman - virtualisation.podman = { - enable = true; - dockerCompat = true; + virtualisation = { + containers.enable = true; + containers.storage.settings.storage = { + driver = "zfs"; + graphroot = "/var/lib/containers/storage"; + runroot = "/run/containers/storage"; + }; + + oci-containers.backend = "podman"; + + podman = { + enable = true; + dockerCompat = true; + extraPackages = with pkgs; [ zfs ]; + }; }; }