mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
25 lines
434 B
Nix
25 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 ];
|
|
}
|