Skip to content

Instantly share code, notes, and snippets.

@Schokokex
Created May 18, 2021 08:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Schokokex/bd551c30d4957bd29c88d2fdb8e98ed8 to your computer and use it in GitHub Desktop.
Save Schokokex/bd551c30d4957bd29c88d2fdb8e98ed8 to your computer and use it in GitHub Desktop.
nix "sandbox"
#!/bin/sh
export package=steam
export homefolder=$package
export cmd=$package
export HOME=/home/jj/.home/$homefolder
mkdir -p ~/.config/nixpkgs/
printf "{ allowUnfree = true; }" > ~/.config/nixpkgs/config.nix
nix-shell -p $package --run $cmd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment