2020-08-02 21:29:42 +02:00
|
|
|
{
|
|
|
|
programs.direnv = {
|
|
|
|
enable = true;
|
|
|
|
stdlib = ''
|
|
|
|
use_flake() {
|
|
|
|
mkdir -p $(direnv_layout_dir)
|
|
|
|
watch_file flake.nix
|
|
|
|
watch_file flake.lock
|
2020-12-20 01:49:18 +01:00
|
|
|
eval "$(nix print-dev-env --profile "$(direnv_layout_dir)/flake-profile")" \
|
|
|
|
&& IN_NIX_SHELL="pure"
|
2020-08-02 21:29:42 +02:00
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|