nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 14 lines 296 B view raw
1# shellcheck shell=bash 2# This setup hook set the HOME environment variable to a writable directory. 3 4export HOME 5 6writableTmpDirAsHome () { 7 if [ ! -w "$HOME" ]; then 8 HOME="$NIX_BUILD_TOP/.home" 9 mkdir -p "$HOME" 10 export HOME 11 fi 12} 13 14postHooks+=(writableTmpDirAsHome)