nix-config/modules/nixos/cli/podman.nix
2025-05-03 16:50:27 +01:00

25 lines
377 B
Nix

{ config, lib, ... }:
with lib;
let
cfg = config.cli.podman;
in
{
options.cli.podman.enable = mkEnableOption "Enable podman";
config = mkIf cfg.enable {
virtualisation = {
oci-containers.backend = "podman";
podman = {
enable = true;
autoPrune = {
enable = true;
dates = "weekly";
};
};
};
};
}