25 lines
393 B
Nix
25 lines
393 B
Nix
{
|
|
outputs,
|
|
options,
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.modules.desktop.security.wireshark;
|
|
in {
|
|
options.modules.desktop.security.wireshark = {
|
|
enable = lib.mkEnableOption false;
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
users.users.sako.extraGroups = [ "wireshark" ];
|
|
|
|
programs.wireshark = {
|
|
enable = true;
|
|
package = pkgs.wireshark;
|
|
};
|
|
};
|
|
}
|