Set ZFS storage for Podman
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user