Jump to content

SecureW2 JoinNow

From NixOS Wiki
Revision as of 12:01, 5 October 2025 by Scrumplex (talk | contribs) (Add SecureW2 wrapper script)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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