direnv: fix direnv configuration path

Direnv >=2.21.0 uses [1] $XDG_CONFIG_HOME/direnv/config.toml as
configuration path.

[1] 54cb3c5a91
This commit is contained in:
Mario Rodas 2022-11-27 04:20:00 +00:00 committed by Robert Helgesson
parent 724395e653
commit e38ce0ae16
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ in {
default = { };
description = ''
Configuration written to
<filename>$XDG_CONFIG_HOME/direnv/config.toml</filename>.
<filename>$XDG_CONFIG_HOME/direnv/direnv.toml</filename>.
</para><para>
See
<citerefentry>
@ -92,7 +92,7 @@ in {
config = mkIf cfg.enable {
home.packages = [ pkgs.direnv ];
xdg.configFile."direnv/config.toml" = mkIf (cfg.config != { }) {
xdg.configFile."direnv/direnv.toml" = mkIf (cfg.config != { }) {
source = tomlFormat.generate "direnv-config" cfg.config;
};