1 { config, lib, pkgs, ... }:
6 cfg = config.programs.mtr;
14 description = lib.mdDoc ''
15 Whether to add mtr to the global environment and configure a
16 setcap wrapper for it.
23 defaultText = literalExpression "pkgs.mtr";
24 description = lib.mdDoc ''
31 config = mkIf cfg.enable {
32 environment.systemPackages = with pkgs; [ cfg.package ];
34 security.wrappers.mtr-packet = {
37 capabilities = "cap_net_raw+p";
38 source = "${cfg.package}/bin/mtr-packet";