diff --git a/hosts/common/configs/user/console/nix-direnv/default.nix b/hosts/common/configs/user/console/nix-direnv/default.nix index ee64533..cc5c29b 100644 --- a/hosts/common/configs/user/console/nix-direnv/default.nix +++ b/hosts/common/configs/user/console/nix-direnv/default.nix @@ -4,6 +4,7 @@ }: { lib, + pkgs, inputs, system, ... @@ -59,17 +60,25 @@ }; # https://github.com/direnv/direnv/wiki/Customizing-cache-location - xdg.configFile."direnv/direnvrc".text = '' - declare -A direnv_layout_dirs - direnv_layout_dir() { - local hash path - echo "''${direnv_layout_dirs[$PWD]:=$( - hash="$(sha1sum - <<< "$PWD" | head -c40)" - path="''${PWD//[^a-zA-Z0-9]/-}" - echo "${home}/.cache/direnv/layouts/''${hash}''${path}" - )}" - } - ''; + xdg.configFile = { + "direnv/direnvrc".text = '' + declare -A direnv_layout_dirs + direnv_layout_dir() { + local hash path + echo "''${direnv_layout_dirs[$PWD]:=$( + hash="$(sha1sum - <<< "$PWD" | head -c40)" + path="''${PWD//[^a-zA-Z0-9]/-}" + echo "${home}/.cache/direnv/layouts/''${hash}''${path}" + )}" + } + ''; + + "direnv/direnv.toml".source = ( + (pkgs.formats.toml { }).generate "direnv.toml" { + global.warn_timeout = 0; + } + ); + }; }; environment.persistence = { diff --git a/hosts/common/configs/user/gui/theme/options.nix b/hosts/common/configs/user/gui/theme/options.nix index 73ed5be..5683028 100644 --- a/hosts/common/configs/user/gui/theme/options.nix +++ b/hosts/common/configs/user/gui/theme/options.nix @@ -464,7 +464,7 @@ in }; xdg.configFile."matugen/config.toml".source = ( - (pkgs.formats.toml { }).generate "matugen" { + (pkgs.formats.toml { }).generate "config.toml" { config = { custom_colors = let