nicks-nix-config/modules/atuin.nix

28 lines
651 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-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;
};
};
}