mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-09 16:18:34 +01:00
s/maintainers = with lib.maintainers; [ figsoda ];/maintainers = with lib.maintainers; [ ];/
30 lines
427 B
Nix
30 lines
427 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 = [ ];
|
|
}
|