nicks-nix-config/modules/atuin.nix

28 lines
644 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;
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-09 18:47:47 -08:00
# filter_mode = "global" | "host" | "session" | "directory"
inline_height = 40;
show_preview = true;
show_help = true;
exit_mode = "return-query";
secrets_filter = true;
};
};
}