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