home: direnv: update to new option name

And enable the flakes option.

I don't actually use this on my own projects, but it could be useful for
other projects that I contribute to.
This commit is contained in:
Bruno BELANYI 2021-06-27 00:54:55 +02:00
parent 6ff1a53a35
commit 1a492c6eb8

View file

@ -9,7 +9,11 @@ in
config.programs.direnv = lib.mkIf cfg.enable { config.programs.direnv = lib.mkIf cfg.enable {
enable = true; enable = true;
# A better `use_nix` nix-direnv = {
enableNixDirenvIntegration = true; # A better `use_nix`
enable = true;
# And `use_flake`
enableFlakes = true;
};
}; };
} }