1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-16 16:19:44 +01:00
home-manager/tests/modules/programs/readline/prefer-xdg-dirs.nix
2024-03-28 06:48:10 +01:00

28 lines
534 B
Nix

{ ... }:
{
home.preferXdgDirectories = true;
programs.readline = {
enable = true;
variables.bell-style = "audible";
};
nmt.script = ''
assertFileContent \
home-files/.config/inputrc \
${
builtins.toFile "readline-expected" ''
# Generated by Home Manager.
$include /etc/inputrc
set bell-style audible
''
}
assertFileContains \
home-path/etc/profile.d/hm-session-vars.sh \
'export INPUTRC="/home/hm-user/.config/inputrc"'
'';
}