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