nix-config/nixos/_mixins/global/podman.nix

19 lines
362 B
Nix
Raw Normal View History

{ config, ... }:
let
dockerEnabled = config.virtualisation.docker.enable;
in
{
virtualisation.podman = {
enable = true;
dockerCompat = !dockerEnabled;
dockerSocket.enable = !dockerEnabled;
defaultNetwork.settings.dns_enabled = true;
};
environment.persistence = {
"/persist".directories = [
"/var/lib/containers"
];
};
}