2026-01-01 02:25:25 -05:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
2025-08-04 22:15:59 -04:00
|
|
|
with lib; let
|
|
|
|
|
cfg = config.services.podman;
|
|
|
|
|
in {
|
|
|
|
|
options.services.podman.enable = mkEnableOption "enable podman";
|
|
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
|
virtualisation = {
|
|
|
|
|
podman = {
|
|
|
|
|
enable = true;
|
|
|
|
|
dockerCompat = true;
|
|
|
|
|
autoPrune = {
|
|
|
|
|
enable = true;
|
|
|
|
|
dates = "weekly";
|
|
|
|
|
flags = [
|
|
|
|
|
"--filter=until=24h"
|
|
|
|
|
"--filter=label!=important"
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
defaultNetwork.settings.dns_enabled = true;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
podman-compose
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
}
|