From 4b78d44ab6a4c9d8f7b5c719985851f4a636b6ea Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Thu, 14 Sep 2017 19:05:11 +0800 Subject: [PATCH] mtr nixos module: wrap the proper binary --- nixos/modules/programs/mtr.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nixos/modules/programs/mtr.nix b/nixos/modules/programs/mtr.nix index 927fe68be875..1fdec4c04f68 100644 --- a/nixos/modules/programs/mtr.nix +++ b/nixos/modules/programs/mtr.nix @@ -19,8 +19,9 @@ in { }; config = mkIf cfg.enable { - security.wrappers.mtr = { - source = "${pkgs.mtr}/bin/mtr"; + environment.systemPackages = with pkgs; [ mtr ]; + security.wrappers.mtr-packet = { + source = "${pkgs.mtr}/bin/mtr-packet"; capabilities = "cap_net_raw+p"; }; };