1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-10-22 13:07:26 +02:00
home-manager/tests/modules/programs/direnv/nushell.nix
2024-09-26 22:52:03 +02:00

18 lines
449 B
Nix

{ 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}"
assertFileRegex "${configFile}" '/nix/store/.*direnv-wrapped'
'';
}