1 { config, lib, pkgs, ... }:
3 let cfg = config.programs.bandwhich;
5 meta.maintainers = with lib.maintainers; [ Br1ght0ne ];
9 enable = lib.mkOption {
10 type = lib.types.bool;
13 Whether to add bandwhich to the global environment and configure a
14 setcap wrapper for it.
20 config = lib.mkIf cfg.enable {
21 environment.systemPackages = with pkgs; [ bandwhich ];
22 security.wrappers.bandwhich = {
25 capabilities = "cap_sys_ptrace,cap_dac_read_search,cap_net_raw,cap_net_admin+ep";
26 source = "${pkgs.bandwhich}/bin/bandwhich";