Wpa supplicant: Difference between revisions

m Simple wpa2 auth example
Tomkoid (talk | contribs)
Add WEP support example
Line 124: Line 124:
  };
  };
</syntaxHighlight>
</syntaxHighlight>
== WEP support ==
You may encounter a situation where you are in a hotel, for example, and the WiFi uses WEP encryption. As of version 2.10 of <code>wpa_supplicant</code>, WEP support is not enabled by default. To enable it, add the following to your <code>configuration.nix</code>:
<syntaxHighlight lang=nixos>
  nixpkgs.overlays = [
    (self: super: {
      wpa_supplicant = super.wpa_supplicant.overrideAttrs (oldAttrs: rec {
        extraConfig = oldAttrs.extraConfig + ''
      CONFIG_WEP=y
    '';
      });
    })
  ];
</syntaxHighlight>
This builds <code>wpa_supplicant</code> with WEP support.


== Fixing "legacy sigalg disallowed or unsupported" ==
== Fixing "legacy sigalg disallowed or unsupported" ==
Line 142: Line 159:
== External links ==
== External links ==


[https://www.stura.htw-dresden.de/stura/ref/hopo/dk/nachrichten/eduroam-meets-nixos (german) article ''eduroam meets NixOS'' (with configuration)] (instance ''University of Applied Sciences Dresden'': The [https://cat.eduroam.org/?idp=5106&profile=5098 eduroam installer for GNU/Linux] works [https://www.htw-dresden.de/en/university/organisation/it-service-centre/services-for-workplace-and-communication/wi-fi-/-wlan/eduroam/linux for example for Ubuntu] but not [[NixOS]])
* [https://www.stura.htw-dresden.de/stura/ref/hopo/dk/nachrichten/eduroam-meets-nixos (german) article ''eduroam meets NixOS'' (with configuration)] (instance ''University of Applied Sciences Dresden'': The [https://cat.eduroam.org/?idp=5106&profile=5098 eduroam installer for GNU/Linux] works [https://www.htw-dresden.de/en/university/organisation/it-service-centre/services-for-workplace-and-communication/wi-fi-/-wlan/eduroam/linux for example for Ubuntu] but not [[NixOS]])
* [https://github.com/NixOS/nixpkgs/issues/177501 NixOs: Can't connect to a WEP network: failure to add network: invalid message format]