17 lines
355 B
Nix
17 lines
355 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 ];
|
|
};
|
|
}
|