anchor.diff:            <xref linkend="opt-networking.wireless.networks" />.
   
             Please note that this adds a custom patch to <package>wpa_supplicant</package>.
  +        '';
  +      };
  +
  +      scanOnLowSignal = mkOption {
  +        type = types.bool;
  +        default = true;
  +        description = ''
  +          Whether to periodically scan for (better) networks when the signal of
  +          the current one is low. This will make roaming between access points
  +          faster, but will consume more power.
           '';
         };
   
  
positive.code:         "ctrl_interface_group=${cfg.userControlled.group}"
          "update_config=1"
        ])
      ++ optional (cfg.extraConfig != "") cfg.extraConfig);
  
    configFile =
  
negative.code:               '';
              };
  
              authProtocols = mkOption {
                default = [
                  # WPA2 and WPA3
                  "WPA-PSK" "WPA-EAP" "SAE"
                  # 802.11r variants of the above
                  "FT-PSK" "FT-EAP" "FT-SAE"
                ];
                # The list can be obtained by running this command
                # awk '
                #   /^# key_mgmt: /{ run=1 }
                #   /^#$/{ run=0 }
                #   /^# [A-Z0-9-]{2,}/{ if(run){printf("\"%s\"\n", $2)} }
                # ' /run/current-system/sw/share/doc/wpa_supplicant/wpa_supplicant.conf.example
                type = types.listOf (types.enum [
                  "WPA-PSK"
                  "WPA-EAP"
                  "IEEE8021X"
                  "NONE"
                  "WPA-NONE"
                  "FT-PSK"
                  "FT-EAP"
                  "FT-EAP-SHA384"
                  "WPA-PSK-SHA256"
                  "WPA-EAP-SHA256"
                  "SAE"
                  "FT-SAE"
                  "WPA-EAP-SUITE-B"
                  "WPA-EAP-SUITE-B-192"
                  "OSEN"
                  "FILS-SHA256"
                  "FILS-SHA384"
                  "FT-FILS-SHA256"
                  "FT-FILS-SHA384"
                  "OWE"
                  "DPP"
                ]);
                description = ''
                  The list of authentication protocols accepted by this network.
                  This corresponds to the <literal>key_mgmt</literal> option in wpa_supplicant.
                '';
              };
  
              auth = mkOption {
                type = types.nullOr types.str;
                default = null;
                example = ''
                  eap=PEAP
                  identity="user@example.com"
                  password="secret"
  