From 4fae28967bbc2c04a48066891c01bfb1c798fc98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 18 Nov 2024 16:28:30 +0100 Subject: [PATCH] nixos/iftop: improve description, use lib.getExe --- nixos/modules/programs/iftop.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/programs/iftop.nix b/nixos/modules/programs/iftop.nix index d6e56c8fded6..8118fb232c6e 100644 --- a/nixos/modules/programs/iftop.nix +++ b/nixos/modules/programs/iftop.nix @@ -4,7 +4,7 @@ let cfg = config.programs.iftop; in { options = { - programs.iftop.enable = lib.mkEnableOption "iftop + setcap wrapper"; + programs.iftop.enable = lib.mkEnableOption "iftop and setcap wrapper for it"; }; config = lib.mkIf cfg.enable { environment.systemPackages = [ pkgs.iftop ]; @@ -12,7 +12,7 @@ in { owner = "root"; group = "root"; capabilities = "cap_net_raw+p"; - source = "${pkgs.iftop}/bin/iftop"; + source = lib.getExe pkgs.iftop; }; }; }