users#direnv: init profile
This commit is contained in:
parent
cdc9960c55
commit
f3f73c2b7b
13
users/profiles/direnv/default.nix
Normal file
13
users/profiles/direnv/default.nix
Normal 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")"
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user