1 { config, lib, pkgs, ... }:
4 cfg = config.programs.wavemon;
8 enable = lib.mkOption {
12 Whether to add wavemon to the global environment and configure a
13 setcap wrapper for it.
19 config = lib.mkIf cfg.enable {
20 environment.systemPackages = with pkgs; [ wavemon ];
21 security.wrappers.wavemon = {
24 capabilities = "cap_net_admin+ep";
25 source = "${pkgs.wavemon}/bin/wavemon";