Skip to content

Use Nix to get Python #1040

@Enzime

Description

@Enzime

I don't have Python installed globally on my NixOS server so it would be nice if the following command just worked out of the box:

client$ sshuttle --dns -r <server> 0.0.0.0/0

Instead I need to first connect to <server> and get the path to Python:

server$ nix build nixpkgs#python3 --print-out-paths
/nix/store/3p3agnh4792y8bgjp0s8xx5bym1ahpks-python3-3.12.9

Then I can pass it using --python:

client$ sshuttle --dns -r <server> 0.0.0.0/0 --python /nix/store/3p3agnh4792y8bgjp0s8xx5bym1ahpks-python3-3.12.9/bin/python

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions