grafana-alloy: don't build the frontend twice
[NixPkgs.git] / nixos / modules / programs / dublin-traceroute.nix
blobc764352843e789ebe84c8ca99eb3435e48acbaaa
1 { config, lib, pkgs, ... }:
3 let
4   cfg = config.programs.dublin-traceroute;
6 in {
7   meta.maintainers = pkgs.dublin-traceroute.meta.maintainers;
9   options = {
10     programs.dublin-traceroute = {
11       enable = lib.mkEnableOption "dublin-traceroute (including setcap wrapper)";
13       package = lib.mkPackageOption pkgs "dublin-traceroute" { };
14     };
15   };
17   config = lib.mkIf cfg.enable {
18     environment.systemPackages = [ cfg.package ];
20     security.wrappers.dublin-traceroute = {
21       owner = "root";
22       group = "root";
23       capabilities = "cap_net_raw+p";
24       source = lib.getExe cfg.package;
25     };
26   };