config/profiles/podman.nix

23 lines
701 B
Nix
Raw Normal View History

2023-07-05 13:34:19 +02:00
{ config, pkgs, ... }:
2023-07-04 23:44:08 +02:00
{
virtualisation.podman.enable = true;
2023-07-05 13:34:19 +02:00
virtualisation.podman.dockerCompat = !config.virtualisation.docker.enable; # alias docker to podman
2023-07-04 23:44:08 +02:00
virtualisation.oci-containers.backend = "podman"; # default
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; [
#podman-compose
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 ];
}