2023-01-10 09:35:00 +00:00
|
|
|
{ lib, ... }:
|
2021-11-04 16:42:44 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
programs = {
|
|
|
|
atuin = {
|
|
|
|
enable = true;
|
|
|
|
enableBashIntegration = false;
|
|
|
|
enableZshIntegration = false;
|
2023-01-10 09:35:00 +00:00
|
|
|
enableFishIntegration = false;
|
2021-11-04 16:42:44 +00:00
|
|
|
};
|
|
|
|
bash.enable = true;
|
|
|
|
zsh.enable = true;
|
2023-01-10 09:35:00 +00:00
|
|
|
fish.enable = true;
|
2021-11-04 16:42:44 +00:00
|
|
|
};
|
|
|
|
|
2023-01-10 09:35:00 +00:00
|
|
|
# Needed to avoid error with dummy fish package.
|
|
|
|
xdg.dataFile."fish/home-manager_generated_completions".source =
|
|
|
|
lib.mkForce (builtins.toFile "empty" "");
|
|
|
|
|
2021-11-04 16:42:44 +00:00
|
|
|
test.stubs = {
|
|
|
|
atuin = { };
|
|
|
|
bash-preexec = { };
|
|
|
|
};
|
|
|
|
|
|
|
|
nmt.script = ''
|
2023-01-10 09:35:00 +00:00
|
|
|
assertFileNotRegex home-files/.zshrc 'atuin init zsh'
|
|
|
|
assertFileNotRegex home-files/.bashrc 'atuin init bash'
|
|
|
|
assertFileNotRegex home-files/.config/fish/config.fish 'atuin init fish'
|
2021-11-04 16:42:44 +00:00
|
|
|
'';
|
|
|
|
}
|