Skip to content

Commit

Permalink
mtr nixos module: wrap the proper binary
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhoeg committed Sep 14, 2017
1 parent d29a8f2 commit 4b78d44
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 4b78d44

Please sign in to comment.