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:
parent
ae5fcad746
commit
d5cdf55bd9
2 changed files with 20 additions and 0 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
19
tests/modules/programs/direnv/silent.nix
Normal file
19
tests/modules/programs/direnv/silent.nix
Normal 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 = "-"
|
||||||
|
''}
|
||||||
|
'';
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue