Jump to content

SecureW2 JoinNow: Difference between revisions

From NixOS Wiki
Scrumplex (talk | contribs)
m Add comments to SecureW2 code
Vater (talk | contribs)
m Vater moved page Eduroam to SecureW2 JoinNow: https://www.securew2.com/multios is an app (package (and program)); wikipedia:en:eduroam is a network access service
Tags: Mobile edit Mobile web edit
(No difference)

Revision as of 23:11, 6 October 2025

SecureW2 JoinNow

To run the SecureW2_JoinNow.run script on NixOS, you require a Shell.nix which uses buildFHSEnv to create an FHS-compliant file system.

Save the following code into a shell.nix file alongside the SecureW2 script and run nix-shell to start the script:

{
  pkgs ? import <nixpkgs> { },
}:
(pkgs.buildFHSEnv {
  name = "securew2-fhsenv";
  targetPkgs =
    pkgs:
    (with pkgs; [
      (python3.withPackages (ps: [ ps.dbus-python ])) # Run embedded Python code
      coreutils # Needs uname to identify architecture
      gnutar # Needed to extract emebedded archive
      libx11 # for GUI
      openssl # Required during Python import
      simpleTpmPk11 # Unknown use
      which # Used by shell script to find programs
      xdg-utils # Used by Python script to open links
      xwininfo # Unknown use
    ]);
  runScript = ./SecureW2_JoinNow.run;
}).env