home-manager/tests/modules/programs/bash/logout.nix

28 lines
443 B
Nix
Raw Normal View History

2019-07-23 21:55:41 +00:00
{ config, lib, pkgs, ... }:
with lib;
{
config = {
programs.bash = {
enable = true;
2022-08-07 11:10:13 +00:00
enableCompletion = false;
2019-07-23 21:55:41 +00:00
logoutExtra = ''
clear-console
'';
};
nmt.script = ''
assertFileExists home-files/.bash_logout
assertFileContent \
home-files/.bash_logout \
${
builtins.toFile "logout-expected" ''
clear-console
''
}
2019-07-23 21:55:41 +00:00
'';
};
}