1 { config, lib, pkgs, ... }:
3 let cfg = config.programs.nethoscope;
6 meta.maintainers = with lib.maintainers; [ _0x4A6F ];
9 programs.nethoscope = {
10 enable = lib.mkOption {
11 type = lib.types.bool;
14 Whether to add nethoscope to the global environment and configure a
15 setcap wrapper for it.
21 config = lib.mkIf cfg.enable {
22 environment.systemPackages = with pkgs; [ nethoscope ];
23 security.wrappers.nethoscope = {
24 source = "${pkgs.nethoscope}/bin/nethoscope";
25 capabilities = "cap_net_raw,cap_net_admin=eip";