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}"
|
2024-09-26 19:07:37 +02:00
|
|
|
assertFileRegex "${configFile}" '/nix/store/.*direnv.*/bin/direnv export json'
|
2022-12-24 14:00:20 +01:00
|
|
|
'';
|
|
|
|
}
|