1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-09 12:49:44 +01:00
home-manager/tests/modules/programs/bash/logout.nix

27 lines
411 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 \
${
builtins.toFile "logout-expected" ''
clear-console
''
}
2019-07-23 23:55:41 +02:00
'';
};
}