{"repo":"DavHau/nix-portable","free":true,"listed":false,"github":"https://github.com/DavHau/nix-portable","clone":"git clone https://github.com/DavHau/nix-portable.git","description":"Nix - Static, Permissionless, Installation-free, Pre-configured","language":"Nix","stars":1382,"topics":["nix","proot","bwrap","namespaces","portable","nixos","package-manager","package-management","bubblewrap","permissionless"],"license":"MIT","category":"cli-tools","readme_excerpt":"🪩 Use nix on any linux system, rootless and configuration free. 🔥 new: Create software bundles that work on any linux distribution. 💾 Downloads --- Get nix-portable Use nix via nix-portable There are two ways to run nix: Method 1: Pass nix command line: Method 2: Symlink against nix-portable: To create a nix-shell executable, create a symlink ./nix-shell against ./nix-portable . Then use the symlink as an executable: This works for any other nix native executable. Get and execute programs Hint: Use search.nixos.org to find available programs. Run a program without installing it Create a temporary environment with multiple programs 1. Enter a temporary environment with htop and vim : 2. execute htop Bundle programs nix-portable can bundle arbitrary software into a static executable that runs on any linux distribution. Prerequisites: Your software is already packaged for nix. Optional : If you don't have nix yet, get nix-portable, then enter a temporary environment with nix and bash: Examples: Bundle gnu hello: Create a bundle containing hello that will work on any machine: Bundle python + libraries Bundle python with arbitrary libraries as a static executable Bundle whole dev environment Bundle a complex development environment including tools like compilers, linters, interpreters, etc. into a static executable. Prerequisites: - use numtide/devshell to define your devShell ( mkShell from nixpkgs won't work because it is not executable) - expose the devShell via a flake.nix ","default_branch":null,"files":null,"tree":[],"storefront":"/r/DavHau","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/DavHau/nix-portable/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}