mtr nixos module: wrap the proper binary

This commit is contained in:
Peter Hoeg 2017-09-14 19:05:11 +08:00
parent d29a8f25c3
commit 4b78d44ab6

View File

@ -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";
};
};