Files
nix-config/modules/misc/wireshark.nix
2025-10-30 21:59:31 +01:00

23 lines
369 B
Nix

{
lib,
config,
pkgs,
...
}:
with lib;
let
cfg = config.custom.wireshark;
in
{
options.custom.wireshark = {
enable = mkEnableOption "Enables wireshark";
};
config = mkIf cfg.enable {
programs.wireshark.enable = true;
programs.wireshark.package = pkgs.wireshark;
users.users.${config.mainUser.name}.extraGroups = [ "wireshark" ];
};
}