mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 12:49:32 -08:00
31 lines
750 B
Nix
31 lines
750 B
Nix
{osConfig, config, pkgs, atuin, ...}:
|
|
|
|
let
|
|
hostname = osConfig.networking.hostName;
|
|
in
|
|
{
|
|
programs.atuin = {
|
|
enable = true;
|
|
package = atuin.packages.${pkgs.system}.atuin;
|
|
enableZshIntegration = true;
|
|
flags = [
|
|
|
|
];
|
|
settings = {
|
|
auto_sync = true;
|
|
keymap_mode = "vim-normal";
|
|
sync_frequency = "20m";
|
|
sync_address = if (hostname == "Alaska") then "http://127.0.0.1:8910"
|
|
else "https://atuin.nickiel.net";
|
|
filter_mode = "host"; #"global" | "host" | "session" | "directory"
|
|
inline_height = 10;
|
|
show_preview = true;
|
|
show_help = true;
|
|
exit_mode = "return-query";
|
|
secrets_filter = true;
|
|
history_filter = [
|
|
"^atuin account login"
|
|
];
|
|
};
|
|
};
|
|
}
|