Skip to content

Commit

Permalink
mtr nixos module: wrap the proper binary
Browse files Browse the repository at this point in the history
(cherry picked from commit 4b78d44)
  • Loading branch information
peterhoeg committed Sep 20, 2017
1 parent eb873f6 commit 1d7ba9f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nixos/modules/programs/mtr.nix
Expand Up @@ -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";
};
};
Expand Down

0 comments on commit 1d7ba9f

Please sign in to comment.