anchor.diff:          '';
         };
   
  +      wifi = {
  +        backend = mkOption {
  +          type = types.enum [ "wpa_supplicant" "iwd" ];
  +          default = "wpa_supplicant";
  +          description = ''
  +            Specify the Wi-Fi backend used.
  +            Currently supported are <option>wpa_supplicant</option> or <option>iwd</option>.
  +          '';
  +        };
  +      };
  +
         extraFlags = mkOption {
           type = with types; listOf str;
           default = [ ];
  
positive.code:     systemd.services.connman = {
        description = "Connection service";
        wantedBy = [ "multi-user.target" ];
        after = [ "syslog.target" ];
        serviceConfig = {
          Type = "dbus";
          BusName = "net.connman";
          Restart = "on-failure";
          ExecStart = "${pkgs.connman}/sbin/connmand --config=${configFile} --nodaemon ${toString cfg.extraFlags}";
          StandardOutput = "null";
        };
      };
  
negative.code: 
      networking = {
        useDHCP = false;
        wireless = {
          enable = mkIf (!enableIwd) true;
          iwd = mkIf enableIwd {
            enable = true;
          };
        };
        networkmanager.enable = false;
      };
    };
  