dotfiles/modules/os/misc/wireshark.nix
eriedaberrie 5a4d076d84 Initial commit
Note: not the actual initial commit.

I swear I will stop repeatedly force pushing to this single commit eventually
ok.
2024-09-21 23:21:42 -07:00

19 lines
343 B
Nix

{ 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" ];
};
}