Files
nix-config/modules/misc/wireshark.nix
2025-03-18 16:27:20 +01:00

19 lines
362 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" ];
};
}