Set ZFS storage for Podman

This commit is contained in:
coolneng 2021-11-23 10:31:12 +01:00
parent da0bbceb5f
commit 0a9cf686af
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 15 additions and 3 deletions

View File

@ -5,8 +5,20 @@
environment.pathsToLink = [ "/share/nix-direnv" ]; environment.pathsToLink = [ "/share/nix-direnv" ];
# Set up podman # Set up podman
virtualisation.podman = { virtualisation = {
enable = true; containers.enable = true;
dockerCompat = 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 ];
};
}; };
} }