SecureW2 JoinNow: Difference between revisions
Appearance
Add SecureW2 wrapper script |
m Add comments to SecureW2 code |
||
Line 11: | Line 11: | ||
pkgs: | pkgs: | ||
(with pkgs; [ | (with pkgs; [ | ||
(python3.withPackages (ps: [ ps.dbus-python ])) | (python3.withPackages (ps: [ ps.dbus-python ])) # Run embedded Python code | ||
coreutils | coreutils # Needs uname to identify architecture | ||
gnutar | gnutar # Needed to extract emebedded archive | ||
libx11 | libx11 # for GUI | ||
openssl | openssl # Required during Python import | ||
simpleTpmPk11 | simpleTpmPk11 # Unknown use | ||
which | which # Used by shell script to find programs | ||
xdg-utils | xdg-utils # Used by Python script to open links | ||
xwininfo | xwininfo # Unknown use | ||
]); | ]); | ||
runScript = ./SecureW2_JoinNow.run; | runScript = ./SecureW2_JoinNow.run; | ||
}).env | }).env | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 12:04, 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 ])) # 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