1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-14 15:19:45 +01:00
home-manager/tests/modules/programs/nushell/example-settings.nix
Philipp Mildenberger 931e610552
nushell: update configuration management
Recent versions of nushell uses a different configuration setup. This
commit adjusts the module to match.

Fixes #2952
Fixes #2837
2022-06-21 00:39:00 +02:00

30 lines
515 B
Nix

{ ... }:
{
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 = { };
nmt.script = ''
assertFileContent \
home-files/.config/nushell/config.nu \
${./config-expected.nu}
assertFileContent \
home-files/.config/nushell/env.nu \
${./env-expected.nu}
'';
}