2023-05-24 13:37:59 +00:00
|
|
|
{ lib, config, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.trippy;
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
programs.trippy = {
|
2024-04-21 15:54:59 +00:00
|
|
|
enable = lib.mkEnableOption "trippy, a network diagnostic tool";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
security.wrappers.trip = {
|
|
|
|
owner = "root";
|
|
|
|
group = "root";
|
|
|
|
capabilities = "cap_net_raw+p";
|
|
|
|
source = lib.getExe pkgs.trippy;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta.maintainers = with lib.maintainers; [ figsoda ];
|
|
|
|
}
|