mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 20:59:32 -08:00
27 lines
651 B
Nix
27 lines
651 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;
|
|
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;
|
|
};
|
|
};
|
|
}
|