Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connman module does not work #199753

Open
AndersonTorres opened this issue Nov 5, 2022 · 6 comments
Open

Connman module does not work #199753

AndersonTorres opened this issue Nov 5, 2022 · 6 comments
Labels
0.kind: bug Something is broken 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS

Comments

@AndersonTorres
Copy link
Member

AndersonTorres commented Nov 5, 2022

Describe the bug

When setting services.connman.enable = true;, it is impossible to use connmanctl to connect to a wifi network. (Didn't try wired.)

Steps To Reproduce

  1. setting configuration.nix:
  services.connman = {
    enable = true;
    enableVPN = false;
    package = pkgs.connmanFull;
    wifi.backend = "wpa_supplicant";
  };
  1. run nixos-rebuild boot --flake ...
  2. reboot
  3. connmanctl scan wifi

The last command says Error /net/connman/technology/wifi: Not supported.

And it becomes impossible to connect without rollback to my old networkmanager configuration.

Expected behavior

The commands should list and recognize wifi networks.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

Notify maintainers

@matejc

Metadata

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.76, NixOS, 22.11 (Raccoon)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.11.0`
 - channels(root): `"nixos-21.03pre243434.e0759a49733, nixos-20.03-20.03.2964.252bfe01075, nixos-unstable-21.03pre243434.e0759a49733"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@AndersonTorres AndersonTorres added the 0.kind: bug Something is broken label Nov 5, 2022
@veprbl veprbl added the 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS label Nov 19, 2022
@AndersonTorres
Copy link
Member Author

I have installed a new machine, and in it I can't use connman too.

@kwshi
Copy link

kwshi commented Jan 24, 2023

Just wanted to see if you're experiencing the same issue as me-- could you try a few commands?

  • Run nixos-rebuild switch instead of nixos-rebuild boot, and see if a systemd error message about wpa_supplicant.service pops up.
  • systemctl status '*wpa_supplicant*', see if there's an error message, and if so, what is it?
  • Does running sudo touch /etc/wpa_supplicant.conf and then nixos-rebuild switch fix the issue for you?

@AndersonTorres
Copy link
Member Author

Remember me tomorrow. I am organizing some repos.

@AndersonTorres
Copy link
Member Author

AndersonTorres commented Mar 3, 2023

@kwshi apologies in advance, but I tried and now it is working!

  1. No error message about wpa_supplicant;
  2. Nothing on the systemd log worth of notice.
  3. Error /net/connman/technology/wifi: Not supported.
  4. Touching and rebooting worked!

@AndersonTorres
Copy link
Member Author

For the record, tonight I will try this in my main machine.

@AndersonTorres
Copy link
Member Author

AndersonTorres commented Mar 4, 2023

I have tried this on my local machine, and the result is: it only works when creating the dummy file:

https://github.com/atorres1985-junkyard/etc/blob/trunk/nixos-config/hendrix/default.nix#L258

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Projects
None yet
Development

No branches or pull requests

3 participants