94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
24 lines
469 B
Nix
24 lines
469 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.programs.sniffnet;
|
|
in
|
|
|
|
{
|
|
options = {
|
|
programs.sniffnet = {
|
|
enable = lib.mkEnableOption (lib.mdDoc "sniffnet");
|
|
};
|
|
};
|
|
|
|
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 ];
|
|
}
|