NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.96k stars 13.98k forks source link

Package request: EASYROAM #228158

Open donni-h opened 1 year ago

donni-h commented 1 year ago

Project description There is a GUI for the new easyroam connection.easyroam is a European university network with which you can get a WIFI connection at all institutions and access paywalled research papers. Sadly, it is only available as a .deb file and I haven't been able to package it myself, due to lacking experience. I would be very gateful, if someone would be willing to package this!

Metadata

Misterio77 commented 1 year ago

FYI: Those scripts are not needed on NixOS (or anywhere, really, connecting to eduroam is actually easy).

On NixOS, you can conveniently use wpa_supplicant declaratively:

{
  networking.wireless = {
    enable = true;
    networks = {
      "eduroam" = {
        auth = ''
          key_mgmt=WPA-EAP
          pairwise=CCMP
          auth_alg=OPEN
          eap=PEAP
          identity="12345678@example.com"
          password="my cool secret pass"
          phase2="auth=MSCHAPV2"
        '';
      };
    };
  };
}
MaxHearnden commented 1 year ago

It is generally not a good idea to include passwords in any .nix file as it would be readable by any process on your system

a better way to enter the password would be using a line like

password="@EDUROAM_PASSWORD@"

creating /root/wireless.env with the contents

EDUROAM_PASSWORD="very cool password"

and then setting networking.wireless.environmentFile = "/root/wireless.env" The quotes around /root/wireless.env are important to keep the file out of the nix store

see https://search.nixos.org/options?channel=22.11&show=networking.wireless.environmentFile&from=0&size=50&sort=relevance&type=packages&query=networking.wireless.environmentFile for more information

Misterio77 commented 1 year ago

Yup, agreed. I just put it that way to be a little easier to digest.

(I use environmentFile on my own config too)

der-eismann commented 1 year ago

Just a heads up - while it was easy in the past, the Linux setup now includes extracting certificates from a .p12 file (German howto), according to my university the old process will stop working in December. The app makes this way easier.

donni-h commented 1 year ago

Just a heads up - while it was easy in the past, the Linux setup now includes extracting certificates from a .p12 file (German howto), according to my university the old process will stop working in December. The app makes this way easier.

agreed. I have already tried contacting them and for one reason or another, they do not seem to want to give out the raw source code, which might be easier to package for Nix.

juvilius commented 11 months ago

slightly off-topic but might be a lead: I'm trying to install it on Arch with debtap. Which offered up a sort of repo: easyroam-desktop.

noggynoggy commented 6 months ago

I've written a guide on how I got it working for me (VPN+WiFi):

https://nx2.site/eduroam-nixos