Created
January 17, 2020 15:54
-
-
Save zimbatm/a3ed4c3369cad6ca6f18953fdaef8a97 to your computer and use it in GitHub Desktop.
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
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