2023-07-05 13:34:19 +02:00
|
|
|
{ config, pkgs, ... }:
|
2023-07-04 23:44:08 +02:00
|
|
|
{
|
|
|
|
virtualisation.podman.enable = true;
|
|
|
|
virtualisation.oci-containers.backend = "podman"; # default
|
2024-03-24 03:11:53 +01:00
|
|
|
virtualisation.podman.dockerCompat = !config.virtualisation.docker.enable; # alias docker to podman
|
2023-07-04 23:44:08 +02:00
|
|
|
|
2023-07-05 13:34:19 +02:00
|
|
|
virtualisation.podman.autoPrune.enable = true;
|
|
|
|
virtualisation.podman.autoPrune.dates = "weekly";
|
|
|
|
#virtualisation.podman.autoPrune.flags = [ "--all" ];
|
|
|
|
|
2023-07-05 00:40:34 +02:00
|
|
|
environment.systemPackages = with pkgs; [
|
2023-07-05 17:30:17 +02:00
|
|
|
#podman-compose # TODO: docker-compose alias to this
|
2023-07-05 00:40:34 +02:00
|
|
|
podman-tui
|
|
|
|
];
|
|
|
|
|
2023-07-04 23:44:08 +02:00
|
|
|
# Required for containers under podman-compose to be able to talk to each other.
|
|
|
|
#virtualisation.defaultNetwork.settings.dns_enabled = true;
|
|
|
|
|
|
|
|
# TODO: if root-on-zfs
|
|
|
|
#virtualisation.podman.extraPackages = [ pkgs.zfs ];
|
|
|
|
}
|