mirror of
https://github.com/divnix/digga.git
synced 2024-11-27 09:29:27 +03:00
direnv: use nix-direnv instead ad hoc hack
This commit is contained in:
parent
89d7829169
commit
fde19f0117
@ -124,6 +124,8 @@ in
|
||||
extraOptions = ''
|
||||
experimental-features = nix-command flakes ca-references
|
||||
min-free = 536870912
|
||||
keep-outputs = true
|
||||
keep-derivations = true
|
||||
'';
|
||||
|
||||
};
|
||||
|
@ -1,14 +1,6 @@
|
||||
{
|
||||
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")" \
|
||||
&& IN_NIX_SHELL="pure"
|
||||
}
|
||||
'';
|
||||
enableNixDirenvIntegration = true;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user