Skip to content

Commit fbe42f0

Browse files
committed
direnv module: add test
1 parent 3b40426 commit fbe42f0

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

examples/example.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
config = {
44
nixpkgs.hostPlatform = "x86_64-linux";
55

6+
programs.direnv.enable = true;
7+
68
services.nginx.enable = true;
79

810
environment = {

test/nix/modules/default.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ forEachUbuntuImage "example" {
308308
309309
vm.fail("bash --login -c '$(which rg)'")
310310
vm.fail("bash --login -c '$(which fd)'")
311+
vm.fail("bash --login -c '$(which direnv)'")
311312
312313
${system-manager.lib.activateProfileSnippet {
313314
node = "vm";
@@ -320,6 +321,7 @@ forEachUbuntuImage "example" {
320321
#vm.fail("bash --login -c '$(which fish)'")
321322
vm.succeed("bash --login -c 'realpath $(which rg) | grep -F ${hostPkgs.ripgrep}/bin/rg'")
322323
vm.succeed("bash --login -c 'realpath $(which fd) | grep -F ${hostPkgs.fd}/bin/fd'")
324+
vm.succeed("bash --login -c 'realpath $(which direnv) | grep -F ${hostPkgs.direnv}/bin/direnv'")
323325
324326
${system-manager.lib.activateProfileSnippet {
325327
node = "vm";
@@ -328,6 +330,7 @@ forEachUbuntuImage "example" {
328330
329331
vm.fail("bash --login -c '$(which rg)'")
330332
vm.fail("bash --login -c '$(which fd)'")
333+
vm.fail("bash --login -c '$(which direnv)'")
331334
vm.succeed("bash --login -c 'realpath $(which fish) | grep -F ${hostPkgs.fish}/bin/fish'")
332335
'';
333336
}

0 commit comments

Comments
 (0)