anchor.diff:    finalConfig = ''"$RUNTIME_DIRECTORY"/wpa_supplicant.conf'';
   
     # Creates a network block for wpa_supplicant.conf
  -  mkNetwork = ssid: opts:
  +  mkNetwork = opts:
     let
       quote = x: ''"${x}"'';
       indent = x: "  " + x;
  
positive.code:   cfg = config.networking.wireless;
    opt = options.networking.wireless;
  
    # Content of wpa_supplicant.conf
    generatedConfig = concatStringsSep "\n" (
      (mapAttrsToList mkNetwork cfg.networks)
      ++ optional cfg.userControlled.enable (concatStringsSep "\n"
        [ "ctrl_interface=/run/wpa_supplicant"
          "ctrl_interface_group=${cfg.userControlled.group}"
  
negative.code:       else opts.pskRaw;
  
      options = [
        "ssid=${quote opts.ssid}"
        (if pskString != null || opts.auth != null
          then "key_mgmt=${concatStringsSep " " opts.authProtocols}"
          else "key_mgmt=NONE")
  