Disable direnv delay warning

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-01-15 11:07:55 +00:00
parent 6b366fc24a
commit ece246937d
2 changed files with 21 additions and 12 deletions

View File

@@ -4,6 +4,7 @@
}: }:
{ {
lib, lib,
pkgs,
inputs, inputs,
system, system,
... ...
@@ -59,17 +60,25 @@
}; };
# https://github.com/direnv/direnv/wiki/Customizing-cache-location # https://github.com/direnv/direnv/wiki/Customizing-cache-location
xdg.configFile."direnv/direnvrc".text = '' xdg.configFile = {
declare -A direnv_layout_dirs "direnv/direnvrc".text = ''
direnv_layout_dir() { declare -A direnv_layout_dirs
local hash path direnv_layout_dir() {
echo "''${direnv_layout_dirs[$PWD]:=$( local hash path
hash="$(sha1sum - <<< "$PWD" | head -c40)" echo "''${direnv_layout_dirs[$PWD]:=$(
path="''${PWD//[^a-zA-Z0-9]/-}" hash="$(sha1sum - <<< "$PWD" | head -c40)"
echo "${home}/.cache/direnv/layouts/''${hash}''${path}" 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 = { environment.persistence = {

View File

@@ -464,7 +464,7 @@ in
}; };
xdg.configFile."matugen/config.toml".source = ( xdg.configFile."matugen/config.toml".source = (
(pkgs.formats.toml { }).generate "matugen" { (pkgs.formats.toml { }).generate "config.toml" {
config = { config = {
custom_colors = custom_colors =
let let