Skip to content

Instantly share code, notes, and snippets.

@zimbatm
Created January 17, 2020 15:54
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 zimbatm/a3ed4c3369cad6ca6f18953fdaef8a97 to your computer and use it in GitHub Desktop.
Save zimbatm/a3ed4c3369cad6ca6f18953fdaef8a97 to your computer and use it in GitHub Desktop.
nix-profile() {
local profile=$PWD/.direnv/nix-profile
mkdir -p .direnv
rm -f "$profile"
nix-build --out-link "$profile" profile.nix
watch_file profile.nix
#source "$profile/etc/profile.d/nix.sh"
load_prefix "$profile"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment