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

23 lines
337 B
Nix
Raw Normal View History

2019-07-23 23:55:41 +02:00
{ config, lib, pkgs, ... }:
with lib;
{
config = {
programs.bash = {
enable = true;
logoutExtra = ''
clear-console
'';
};
nmt.script = ''
assertFileExists home-files/.bash_logout
assertFileContent \
home-files/.bash_logout \
${./logout-expected.txt}
'';
};
}