1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-26 19:59:47 +01:00
home-manager/tests/modules/programs/atuin/no-shell.nix
Robert Helgesson af2007bb77
atuin: add module
This commit adds a module for configuring atuin, a replacement shell
history program.

The module adds options for generating atuin's `config.toml` from Nix,
and options to enable atuin's integration for bash and zsh
(which will rebind history keys to open the atuin history).
2021-10-05 23:48:52 +02:00

23 lines
407 B
Nix

{ ... }:
{
programs = {
atuin = {
enable = true;
enableBashIntegration = false;
enableZshIntegration = false;
};
bash.enable = true;
zsh.enable = true;
};
test.stubs = {
atuin = { };
bash-preexec = { };
};
nmt.script = ''
assertFileNotRegex home-files/.zshrc '@atuin@ init zsh'
assertFileNotRegex home-files/.bashrc '@atuin@ init bash'
'';
}