nixos-config/configurations/direnv.nix
Charlotte Van Petegem c59fd9a5a7 Flakes, but it doesn't work 😞
2020-07-22 01:03:47 +02:00

26 lines
576 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 --experimental-features 'nix-commnand flakes' print-dev-env --profile "$(direnv_layout_dir)/flake-profile")"
}
'';
};
};
}