1 { config, lib, pkgs, ... }:
4 cfg = config.programs.nexttrace;
10 enable = lib.mkEnableOption "Nexttrace to the global environment and configure a setcap wrapper for it";
11 package = lib.mkPackageOption pkgs "nexttrace" { };
15 config = lib.mkIf cfg.enable {
16 environment.systemPackages = [ cfg.package ];
18 security.wrappers.nexttrace = {
21 capabilities = "cap_net_raw,cap_net_admin+eip";
22 source = "${cfg.package}/bin/nexttrace";