94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
24 lines
434 B
Nix
24 lines
434 B
Nix
{ lib, config, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.programs.trippy;
|
|
in
|
|
|
|
{
|
|
options = {
|
|
programs.trippy = {
|
|
enable = lib.mkEnableOption (lib.mdDoc "trippy");
|
|
};
|
|
};
|
|
|
|
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 ];
|
|
}
|