Files

33 lines
590 B
Nix
Raw Permalink Normal View History

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