22 lines
363 B
Nix
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 ];
|
|
};
|
|
}
|