1 { config, pkgs, lib, ... }:
4 cfg = config.programs.iotop;
7 programs.iotop.enable = lib.mkEnableOption "iotop + setcap wrapper";
9 config = lib.mkIf cfg.enable {
10 security.wrappers.iotop = {
13 capabilities = "cap_net_admin+p";
14 source = "${pkgs.iotop}/bin/iotop";