1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-21 17:59:39 +01:00

direnv: add tests for silent option

This commit is contained in:
Marius Niveri 2025-04-14 22:31:54 +02:00 committed by Austin Horstman
parent ae5fcad746
commit d5cdf55bd9
2 changed files with 20 additions and 0 deletions

View file

@ -5,4 +5,5 @@
direnv-nushell = ./nushell.nix; direnv-nushell = ./nushell.nix;
direnv-stdlib = ./stdlib.nix; direnv-stdlib = ./stdlib.nix;
direnv-stdlib-and-nix-direnv = ./stdlib-and-nix-direnv.nix; direnv-stdlib-and-nix-direnv = ./stdlib-and-nix-direnv.nix;
direnv-silent = ./silent.nix;
} }

View file

@ -0,0 +1,19 @@
{ pkgs, ... }:
{
programs.bash.enable = true;
programs.direnv = {
enable = true;
silent = true;
};
nmt.script = ''
assertFileExists home-files/.config/direnv/direnv.toml
assertFileContent \
home-files/.config/direnv/direnv.toml \
${pkgs.writeText "direnv.toml" ''
[global]
log_filter = "^$"
log_format = "-"
''}
'';
}