1 { config, lib, pkgs, ... }:
5 let cfg = config.programs.nethoscope;
8 meta.maintainers = with maintainers; [ _0x4A6F ];
11 programs.nethoscope = {
15 description = lib.mdDoc ''
16 Whether to add nethoscope to the global environment and configure a
17 setcap wrapper for it.
23 config = mkIf cfg.enable {
24 environment.systemPackages = with pkgs; [ nethoscope ];
25 security.wrappers.nethoscope = {
26 source = "${pkgs.nethoscope}/bin/nethoscope";
27 capabilities = "cap_net_raw,cap_net_admin=eip";