mirror of
https://github.com/nix-community/home-manager
synced 2024-12-29 22:43:28 +00:00
e9b7d12e06
This ensures that the generated file is syntactically valid. Issue #2015
26 lines
417 B
Nix
26 lines
417 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 \
|
|
${
|
|
pkgs.writeShellScript "logout-expected" ''
|
|
clear-console
|
|
''
|
|
}
|
|
'';
|
|
};
|
|
}
|