587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
24 lines
449 B
Nix
24 lines
449 B
Nix
{ lib, config, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.programs.trippy;
|
|
in
|
|
|
|
{
|
|
options = {
|
|
programs.trippy = {
|
|
enable = lib.mkEnableOption "trippy, a network diagnostic tool";
|
|
};
|
|
};
|
|
|
|
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 ];
|
|
}
|