summary refs log blame commit diff
path: root/nixos/modules/programs/iotop.nix
blob: 5512dbc62f72b65619af049743073cbdf4887f02 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                    





                                         
{ config, pkgs, lib, ... }:

with lib;

let
  cfg = config.programs.iotop;
in {
  options = {
    programs.iotop.enable = mkEnableOption "iotop + setcap wrapper";
  };
  config = mkIf cfg.enable {
    security.wrappers.iotop = {
      source = "${pkgs.iotop}/bin/iotop";
      capabilities = "cap_net_admin+p";
    };
  };
}