2022-11-24 00:37:08 +01:00
|
|
|
{ pkgs, ... }:
|
2022-05-13 17:20:42 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
programs.nushell = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
configFile.text = ''
|
|
|
|
let $config = {
|
|
|
|
filesize_metric: false
|
|
|
|
table_mode: rounded
|
|
|
|
use_ls_colors: true
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
|
|
|
|
envFile.text = ''
|
|
|
|
let-env FOO = 'BAR'
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
test.stubs.nushell = { };
|
|
|
|
|
2022-11-24 00:37:08 +01:00
|
|
|
nmt.script = let
|
|
|
|
configDir = if pkgs.stdenv.isDarwin then
|
|
|
|
"home-files/Library/Application Support/nushell"
|
|
|
|
else
|
|
|
|
"home-files/.config/nushell";
|
|
|
|
in ''
|
2022-05-13 17:20:42 +02:00
|
|
|
assertFileContent \
|
2022-11-24 00:37:08 +01:00
|
|
|
"${configDir}/config.nu" \
|
2022-05-13 17:20:42 +02:00
|
|
|
${./config-expected.nu}
|
|
|
|
assertFileContent \
|
2022-11-24 00:37:08 +01:00
|
|
|
"${configDir}/env.nu" \
|
2022-05-13 17:20:42 +02:00
|
|
|
${./env-expected.nu}
|
|
|
|
'';
|
|
|
|
}
|