1 { config, pkgs, lib, ... }:
4 cfg = config.programs.iftop;
7 programs.iftop.enable = lib.mkEnableOption "iftop + setcap wrapper";
9 config = lib.mkIf cfg.enable {
10 environment.systemPackages = [ pkgs.iftop ];
11 security.wrappers.iftop = {
14 capabilities = "cap_net_raw+p";
15 source = "${pkgs.iftop}/bin/iftop";