From e38ce0ae16b68515c913ab50177bc7624f65f569 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sun, 27 Nov 2022 04:20:00 +0000 Subject: [PATCH] direnv: fix direnv configuration path Direnv >=2.21.0 uses [1] $XDG_CONFIG_HOME/direnv/config.toml as configuration path. [1] https://github.com/direnv/direnv/commit/54cb3c5a91edb377b4b7387e2cda43dc39064a4a --- modules/programs/direnv.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/programs/direnv.nix b/modules/programs/direnv.nix index 03210827a..ad294b2e6 100644 --- a/modules/programs/direnv.nix +++ b/modules/programs/direnv.nix @@ -29,7 +29,7 @@ in { default = { }; description = '' Configuration written to - $XDG_CONFIG_HOME/direnv/config.toml. + $XDG_CONFIG_HOME/direnv/direnv.toml. See @@ -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; };