2023-05-24 13:37:59 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.sniffnet;
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
programs.sniffnet = {
|
2024-04-21 15:54:59 +00:00
|
|
|
enable = lib.mkEnableOption "sniffnet, a network traffic monitor application";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
security.wrappers.sniffnet = {
|
|
|
|
owner = "root";
|
|
|
|
group = "root";
|
|
|
|
capabilities = "cap_net_raw,cap_net_admin=eip";
|
|
|
|
source = "${pkgs.sniffnet}/bin/sniffnet";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta.maintainers = with lib.maintainers; [ figsoda ];
|
|
|
|
}
|