2024-04-14 06:58:16 +00:00
|
|
|
{ pkgs, config, ... }:
|
2022-12-24 13:00:20 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
programs.nushell.enable = true;
|
|
|
|
programs.direnv.enable = true;
|
|
|
|
|
|
|
|
test.stubs.nushell = { };
|
|
|
|
|
|
|
|
nmt.script = let
|
2024-04-14 06:58:16 +00:00
|
|
|
configFile = if pkgs.stdenv.isDarwin && !config.xdg.enable then
|
2022-12-24 13:00:20 +00:00
|
|
|
"home-files/Library/Application Support/nushell/config.nu"
|
|
|
|
else
|
|
|
|
"home-files/.config/nushell/config.nu";
|
|
|
|
in ''
|
|
|
|
assertFileExists "${configFile}"
|
|
|
|
assertFileRegex "${configFile}" \
|
2023-12-18 02:16:52 +00:00
|
|
|
'^\s*let direnv = (/nix/store/.*direnv.*/bin/direnv export json$'
|
2022-12-24 13:00:20 +00:00
|
|
|
'';
|
|
|
|
}
|