nicks-nix-config/modules/atuin.nix

32 lines
750 B
Nix
Raw Normal View History

2024-01-09 19:52:14 -08:00
{osConfig, config, pkgs, atuin, ...}:
2024-01-09 18:47:47 -08:00
let
2024-01-09 19:52:14 -08:00
hostname = osConfig.networking.hostName;
2024-01-09 18:47:47 -08:00
in
{
programs.atuin = {
enable = true;
package = atuin.packages.${pkgs.system}.atuin;
enableZshIntegration = true;
flags = [
];
settings = {
auto_sync = true;
2024-08-31 14:26:23 -07:00
keymap_mode = "vim-normal";
2024-01-09 18:47:47 -08:00
sync_frequency = "20m";
2024-01-09 19:52:14 -08:00
sync_address = if (hostname == "Alaska") then "http://127.0.0.1:8910"
else "https://atuin.nickiel.net";
2024-01-27 10:31:55 -08:00
filter_mode = "host"; #"global" | "host" | "session" | "directory"
2024-01-11 18:19:13 -08:00
inline_height = 10;
2024-01-09 18:47:47 -08:00
show_preview = true;
show_help = true;
exit_mode = "return-query";
secrets_filter = true;
2024-08-31 14:26:23 -07:00
history_filter = [
"^atuin account login"
];
2024-01-09 18:47:47 -08:00
};
};
}