mirror of
https://github.com/nix-community/home-manager
synced 2024-11-10 07:04:17 +00: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 = { };
|
||||
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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue