1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-09 20:59:44 +01:00
home-manager/tests/modules/programs/nushell/example-settings.nix

43 lines
794 B
Nix
Raw Normal View History

{ pkgs, ... }:
{
programs.nushell = {
enable = true;
configFile.text = ''
let $config = {
filesize_metric: false
table_mode: rounded
use_ls_colors: true
}
'';
envFile.text = ''
let-env FOO = 'BAR'
'';
shellAliases = {
"lsname" = "(ls | get name)";
"ll" = "ls -a";
};
2023-05-04 00:12:21 +02:00
environmentVariables = { BAR = "$'(echo BAZ)'"; };
};
test.stubs.nushell = { };
nmt.script = let
configDir = if pkgs.stdenv.isDarwin then
"home-files/Library/Application Support/nushell"
else
"home-files/.config/nushell";
in ''
assertFileContent \
"${configDir}/config.nu" \
${./config-expected.nu}
assertFileContent \
"${configDir}/env.nu" \
${./env-expected.nu}
'';
}