Created
May 18, 2021 08:33
-
-
Save Schokokex/bd551c30d4957bd29c88d2fdb8e98ed8 to your computer and use it in GitHub Desktop.
nix "sandbox"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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