direnv: add support for mise integration
This commit is contained in:
parent
0c0268a3c8
commit
93435d27d2
3 changed files with 33 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
direnv-bash = ./bash.nix;
|
||||
direnv-mise = ./mise.nix;
|
||||
direnv-nix-direnv = ./nix-direnv.nix;
|
||||
direnv-nushell = ./nushell.nix;
|
||||
direnv-stdlib = ./stdlib.nix;
|
||||
|
|
|
|||
17
tests/modules/programs/direnv/mise.nix
Normal file
17
tests/modules/programs/direnv/mise.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
programs.bash.enable = true;
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
mise = {
|
||||
enable = true;
|
||||
package = config.lib.test.mkStubPackage { name = "mise"; };
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.bashrc
|
||||
assertFileExists home-files/.config/direnv/lib/hm-mise.sh
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue