users#direnv: init profile

This commit is contained in:
Timothy DeHerrera 2020-08-02 13:29:42 -06:00
parent cdc9960c55
commit f3f73c2b7b
No known key found for this signature in database
GPG Key ID: 8985725DB5B0C122
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
{
programs.direnv = {
enable = true;
stdlib = ''
use_flake() {
mkdir -p $(direnv_layout_dir)
watch_file flake.nix
watch_file flake.lock
eval "$(nix print-dev-env --profile "$(direnv_layout_dir)/flake-profile")"
}
'';
};
}