Files
nix-config/modules/misc/wireshark.nix
2024-04-16 21:31:31 +02:00

19 lines
390 B
Nix

{lib, config, pkgs, ... }:
with lib;
let
cfg = config.kop.wireshark;
in
{
options.kop.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" ];
};
}