nixos-config/configurations/direnv.nix
2020-07-22 11:14:42 +02:00

26 lines
530 B
Nix

{ ... }:
{
custom.zfs.homeLinks = [
{ path = ".local/share/direnv"; type = "cache"; }
];
home-manager.users.charlotte = { ... }: {
programs.direnv = {
enable = true;
enableZshIntegration = true;
config = {
global = {
strict_env = true;
};
};
stdlib = ''
use_flake() {
watch_file flake.nix
watch_file flake.lock
eval "$(nix print-dev-env --profile "$(direnv_layout_dir)/flake-profile")"
}
'';
};
};
}