Jump to content

SecureW2 JoinNow: Difference between revisions

From NixOS Wiki
Scrumplex (talk | contribs)
Add SecureW2 wrapper script
(No difference)

Revision as of 12:01, 5 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 ]))
      coreutils
      gnutar
      libx11
      openssl
      simpleTpmPk11
      which
      xdg-utils
      xwininfo
    ]);
  runScript = ./SecureW2_JoinNow.run;
}).env