LnL7 / nix-darwin

nix modules for darwin
MIT License
3.19k stars 457 forks source link

mtr is missing option to set setuidbit #916

Closed basn closed 7 months ago

basn commented 7 months ago

As in normal NixOS mtr needs to be called with sudo To avoid the need to escalate privileges when calling mtr create a setcap wrapper by setting

https://nixos.wiki/wiki/Mtr

It can be fixed by: sudo chmod 4755 /run/current-system/sw/bin/mtr-packet https://blog.dave-bell.co.uk/2020/01/06/using-mtr-on-os-x-without-sudo/

is it possible to add programs.mtr.enable = true;?

Samasaur1 commented 7 months ago

There's an open issue (https://github.com/LnL7/nix-darwin/issues/618) for this already. I have an open PR (https://github.com/LnL7/nix-darwin/pull/890) that needs to be reviewed, but should solve the issue.

basn commented 7 months ago

As there is an open issue i did not find i will close this :)