Created
June 17, 2021 14:11
-
-
Save superherointj/41fde0dfa4233f7eb98df4a6f5a22f1f to your computer and use it in GitHub Desktop.
Direnv flakes
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
programs.direnv = { | |
enable = true; | |
nix-direnv = { | |
enable = true; | |
enableFlakes = true; | |
}; | |
}; | |
home.file.".config/direnv/lib/use_flake.sh".text = '' | |
use_flake() { | |
watch_file flake.nix | |
watch_file flake.lock | |
eval "$(nix print-dev-env --profile "$(direnv_layout_dir)/flake-profile")" | |
} | |
''; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment