1 { config, lib, pkgs, ... }:
4 cfg = config.programs.traceroute;
7 programs.traceroute = {
8 enable = lib.mkOption {
12 Whether to configure a setcap wrapper for traceroute.
18 config = lib.mkIf cfg.enable {
19 security.wrappers.traceroute = {
22 capabilities = "cap_net_raw+p";
23 source = "${pkgs.traceroute}/bin/traceroute";