nix-config/modules/nix/networking/wireshark.nix
2025-08-24 22:27:49 +02:00

22 lines
363 B
Nix

{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.wireshark.enable = mkOption {
type = types.bool;
default = false;
description = "wireshark";
};
config = mkIf config.smayzy.wireshark.enable {
programs.wireshark.enable = true;
environment.systemPackages = with pkgs; [ wireshark ];
};
}