1 { config, lib, pkgs, ... }:
4 cfg = config.programs.cnping;
9 enable = lib.mkEnableOption "a setcap wrapper for cnping";
13 config = lib.mkIf cfg.enable {
14 security.wrappers.cnping = {
15 source = "${pkgs.cnping}/bin/cnping";
16 capabilities = "cap_net_raw+ep";