dotfiles/modules/os/misc/wireshark.nix

19 lines
343 B
Nix
Raw Normal View History

{ pkgs, config, lib, ... }:
let
cfg = config.my.wireshark;
in {
options.my.wireshark = {
enable = lib.mkEnableOption null;
};
config = lib.mkIf cfg.enable {
programs.wireshark = {
enable = true;
package = lib.mkIf config.my.desktop.enable pkgs.wireshark;
};
my.user.extraGroups = [ "wireshark" ];
};
}