{ lib, config, ... }:
let
  inherit (lib) mkEnableOption mkIf;
  cfg = config.modules.system.networking.wifi;
in
{
  options.modules.system.networking.wifi = {
    enable = mkEnableOption "activate wifi capabilities";
  };

  config = mkIf cfg.enable {
    networking.networkmanager.enable = true;
  };
}
