Files
My_NixOS_Config/nixos/worklaptop/virtualisation.nix
2025-04-14 17:27:09 +01:00

24 lines
472 B
Nix

{
inputs,
lib,
config,
pkgs,
unstablePkgs,
...
}: {
virtualisation = {
containers.enable = true;
podman = {
enable = true;
# Create a `docker` alias for podman, to use it as a drop-in replacement
dockerCompat = true;
dockerSocket.enable = true;
# Required for containers under podman-compose to be able to talk to each other.
defaultNetwork.settings.dns_enabled = true;
};
libvirtd.enable = true;
};
}