nix-config-v2/modules/virtualization/podman.nix

33 lines
590 B
Nix
Raw Normal View History

{
config,
lib,
pkgs,
...
}: let
2024-12-23 14:35:36 -06:00
cfg = config.podman;
in {
2024-12-23 14:35:36 -06:00
options = {
podman = {
enable = lib.mkEnableOption "Podman container runtime";
extraPackages = lib.mkOption {
type = lib.types.listOf lib.types.package;
default = [];
description = "Additional container-related packages to install";
};
};
};
config = lib.mkIf cfg.enable {
environment.systemPackages =
[
pkgs.podman
pkgs.podman-compose
pkgs.buildah
pkgs.skopeo
pkgs.dive
]
++ cfg.extraPackages;
};
2024-12-12 19:41:58 -06:00
}