mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 19:51:17 +00:00
142074c2a8
Fix descriptions that don't account for (1) the "Whether to enable" prefix or (2) the automatically added trailing dot.
22 lines
364 B
Nix
22 lines
364 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.programs.cnping;
|
|
in
|
|
{
|
|
options = {
|
|
programs.cnping = {
|
|
enable = mkEnableOption (lib.mdDoc "a setcap wrapper for cnping");
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
security.wrappers.cnping = {
|
|
source = "${pkgs.cnping}/bin/cnping";
|
|
capabilities = "cap_net_raw+ep";
|
|
};
|
|
};
|
|
}
|