sneeuwvlok/modules/nixos/services/virtualisation/podman/default.nix
2025-07-28 14:34:40 +02:00

23 lines
493 B
Nix

{ config, options, lib, pkgs, namespace, ... }:
let
inherit (lib) mkIf mkEnableOption;
cfg = config.${namespace}.services.virtualisation.podman;
in
{
options.${namespace}.services.virtualisation.podman = {
enable = mkEnableOption "enable podman";
};
config = mkIf cfg.enable {
virtualisation = {
containers.enable = true;
podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
};
};
};
}