nix-config/modules/nix/containers/docker/cyberchef.nix
smayzy 9037f01470
All checks were successful
nixos config pipeline / show-flake (push) Successful in 31s
nixos config pipeline / deploy (push) Successful in 7s
add cyberchef and correct things in nixos containers
2025-08-30 20:27:24 +02:00

28 lines
618 B
Nix

{ lib, config, ... }:
let
inherit (lib) mkIf mkOption types;
cfg = config.smayzy.containers.docker.cyberchef;
in
{
options.smayzy.containers.docker.cyberchef = {
enable = mkOption {
type = types.bool;
default = false;
description = "cyberchef docker ct";
};
port = mkOption {
type = types.int;
default = 80;
description = "cyberchef's port";
};
};
config = mkIf cfg.enable {
virtualisation.oci-containers.containers = {
cyberchef = {
image = "ghcr.io/gchq/cyberchef";
ports = [ "${toString cfg.port}:80" ];
};
};
};
}