mirror of
https://github.com/nix-community/home-manager
synced 2024-11-05 10:49:44 +01: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
|
|
''
|
|
}
|
|
'';
|
|
};
|
|
}
|