home-manager/tests/modules/programs/nushell/settings.nix

34 lines
591 B
Nix
Raw Normal View History

2020-07-24 17:15:55 +02:00
{ config, lib, pkgs, ... }:
with lib;
{
config = {
programs.nushell = {
enable = true;
settings = mkMerge [
{
edit_mode = "vi";
startup = [ "alias la [] { ls -a }" ];
completion_mode = "circular";
key_timeout = 10;
}
{
startup = [ "alias e [msg] { echo $msg }" ];
no_auto_pivot = true;
}
];
};
test.stubs.nushell = { };
2020-07-24 17:15:55 +02:00
nmt.script = ''
assertFileContent \
home-files/.config/nu/config.toml \
${./settings-expected.toml}
'';
};
}