infra/nix/hosts/loki/modules/podman.nix
2023-12-03 22:40:10 +01:00

28 lines
526 B
Nix

{
config,
pkgs,
...
}: {
virtualisation = {
containers.storage.settings = {
# configure for zfs.
storage = {
driver = "zfs";
graphroot = "/var/lib/containers/storage";
runroot = "/run/containers/storage";
};
};
## setup podman.
podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enable = true;
};
oci-containers = {
## use podman as the default container engine.
backend = "podman";
};
};
}