30 lines
545 B
Nix
30 lines
545 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.virtual.podman;
|
|
in {
|
|
options = {
|
|
virtual.podman.enable =
|
|
mkEnableOption "enables podman";
|
|
};
|
|
config = mkIf cfg.enable {
|
|
virtualisation = {
|
|
containers.enable = true;
|
|
podman = {
|
|
enable = true;
|
|
dockerCompat = true;
|
|
defaultNetwork.settings.dns_enabled = true;
|
|
};
|
|
};
|
|
virtualisation.oci-containers.backend = "podman";
|
|
environment.systemPackages = with pkgs; [
|
|
podman-tui
|
|
podman-compose
|
|
];
|
|
};
|
|
}
|