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:
parent
724395e653
commit
e38ce0ae16
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue