nixos/iotop: don't install the package globally

The binary will be in `/run/wrappers/bin` and adding `pkgs.iotop` won't
have any effect.

See also https://github.com/NixOS/nixpkgs/pull/51749#discussion_r254724170
This commit is contained in:
Maximilian Bosch 2019-02-07 16:52:01 +01:00
parent dcfce974d9
commit 6a0d2ff7c1
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E

View file

@ -9,7 +9,6 @@ in {
programs.iotop.enable = mkEnableOption "iotop + setcap wrapper";
};
config = mkIf cfg.enable {
environment.systemPackages = [ pkgs.iotop ];
security.wrappers.iotop = {
source = "${pkgs.iotop}/bin/iotop";
capabilities = "cap_net_admin+p";