2024-09-09 22:23:50 +00:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.custom.programs.wireshark;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.custom.programs.wireshark.enable = mkOption { default = false; };
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
# https://gitlab.com/wireshark/wireshark
|
2024-09-11 23:21:59 +00:00
|
|
|
programs.wireshark = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.wireshark; # GUI
|
|
|
|
};
|
2024-09-09 22:23:50 +00:00
|
|
|
|
|
|
|
users.users.${config.custom.username}.extraGroups = [ "wireshark" ];
|
|
|
|
};
|
|
|
|
}
|