1
0
mirror of https://github.com/nix-community/home-manager synced 2024-07-05 12:53:27 +02:00
home-manager/tests/modules/programs/bash/logout.nix
2022-08-07 15:25:44 +02:00

28 lines
443 B
Nix

{ config, lib, pkgs, ... }:
with lib;
{
config = {
programs.bash = {
enable = true;
enableCompletion = false;
logoutExtra = ''
clear-console
'';
};
nmt.script = ''
assertFileExists home-files/.bash_logout
assertFileContent \
home-files/.bash_logout \
${
builtins.toFile "logout-expected" ''
clear-console
''
}
'';
};
}