mtr nixos module: wrap the proper binary
This commit is contained in:
parent
d29a8f25c3
commit
4b78d44ab6
|
@ -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";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue