1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-01 16:59:43 +01:00
home-manager/tests/modules/programs/direnv/nushell.nix

19 lines
466 B
Nix
Raw Normal View History

{ pkgs, config, ... }:
{
programs.nushell.enable = true;
programs.direnv.enable = true;
test.stubs.nushell = { };
nmt.script = let
configFile = if pkgs.stdenv.isDarwin && !config.xdg.enable then
"home-files/Library/Application Support/nushell/config.nu"
else
"home-files/.config/nushell/config.nu";
in ''
assertFileExists "${configFile}"
2024-10-18 06:54:12 +02:00
assertFileRegex "${configFile}" '/nix/store/.*direnv.*/bin/direnv export json'
'';
}