1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-22 09:49:47 +01:00

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

View file

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