home-manager/tests/modules/programs/bash/logout.nix
2019-08-16 16:46:38 +09:00

23 lines
337 B
Nix

{ 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}
'';
};
}