Is it possible to configure WiFi connection in NetworkManager?

Hi folks,

Could you please help me with Network Manager?

Is there a NixOS configuration option to add Wi-Fi or other connection to Network Manager?

If not then that’s OK since I should be able to solve it by:

config.environment.etc."etc/NetworkManager/system-connections/mywifi.nmconnection" = { Text = "...";  }

But just want to ask first before trying to create a file like this.

Of course I searched options networking.networkmanager on on and networkmanager on Appendix A. Configuration Options but I didn’t find anything that can do that.

Thank you.

1 Like

The network configuration settings specified in the configuration.nix file should, under normal circumstances, function properly without requiring additional modifications.

  networking = {
    hostName = "nixos";
    networkmanager.enable = true;