1 { config, lib, pkgs, ... }:
6 cfg = config.programs.cnping;
11 enable = mkEnableOption (lib.mdDoc "a setcap wrapper for cnping");
15 config = mkIf cfg.enable {
16 security.wrappers.cnping = {
17 source = "${pkgs.cnping}/bin/cnping";
18 capabilities = "cap_net_raw+ep";