mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
direnv: fix direnv configuration path
Direnv >=2.21.0 uses [1] $XDG_CONFIG_HOME/direnv/config.toml as configuration path. [1]54cb3c5a91(cherry picked from commite38ce0ae16)
This commit is contained in:
committed by
Robert Helgesson
parent
8f26dec249
commit
6d3912c6db
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user