1 { config, lib, pkgs, ... }:
4 cfg = config.programs.liboping;
6 options.programs.liboping = {
7 enable = lib.mkEnableOption "liboping";
9 config = lib.mkIf cfg.enable {
10 environment.systemPackages = with pkgs; [ liboping ];
11 security.wrappers = lib.mkMerge (builtins.map (
16 capabilities = "cap_net_raw+p";
17 source = "${pkgs.liboping}/bin/${exec}";
20 ) [ "oping" "noping" ]);